This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Declare int8_t in python

I'm using the s130 SoftDevice on the nRF51 dongle and writing a PC app in python. How can I declare an int8_t in python for use in the sd_ble_gap_rssi_get function? The function parameters are:

[in]       uint16_t  conn_handle    Connection handle.
[out]     int8_t *   p_rssi               Pointer to the location where the RSSI measurement shall be stored.

I can declare a uint8_t with the new_uint8t() function, but there doesn't seem to be an equivalent function new_int8t().

Related