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

Ble_radio_notification wont compile

Added ble_radio_notification files to my project in SDK11, but they wont compile.

Parents Reply
  • sd_radio_notification_cfg_set() uses uint8_t, but the values have to be the ones defined in the anonymous enums NRF_RADIO_NOTIFICATION_DISTANCES and NRF_RADIO_NOTIFICATION_TYPES. These enums are the same as a defines in practice. The reason sd_radio_notification_cfg_set() does not take enums as argumenst is that enums can have different sizes depending on compiler options, which may cause issues regarding alignment and backwards compatibility. The application may also be compiled by a different compiler than the SoftDevice which can make it use different sizes for the enums.

Children
No Data
Related