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

What is maximum number of event handlers supported for radio notification event handler?

My application would like to receieve notifications at several different times before a radio notification event. Specifically the application needs to receive notification 250mS before and the flash manager requires notification 50mS before.

Does ble_radio_notification_init support multiple event handlers and if so how many?
What errors will be generated when exceeding the maximum supported event handlers?

In other words will this work:

err_code = ble_radio_notification_init(NRF_APP_PRIORITY_HIGH,
                                       NRF_RADIO_NOTIFICATION_DISTANCE_4560US,
                                       ble_flash_on_radio_active_evt);
APP_ERROR_CHECK(err_code);

err_code = ble_radio_notification_init(NRF_APP_PRIORITY_HIGH,
                                       NRF_RADIO_NOTIFICATION_DISTANCE_250MS,
                                       application_radio_active_evt);
APP_ERROR_CHECK(err_code);
Parents
  • Hello Ole, thanks for the response!

    I'm a bit confused by your comment about the revision 2 of the device. I am already using SDK 5.1.0 and soft device 6.0.0. I am currently designing with nrf51822 evaluation kit, with a chip labeled N51822 QFAAFA 1328AA.

    Is this chip compatible with the SDK 5.1.0 and Soft Device 6.0.0?

    Does the ble_flash module in the SDK 5.1.0 still require the radio notification event handler to be called?

    If I'm not using ble_flash module code in my application can I remove the call to ble_flash_on_radio_active_evt? I based my application off the ancs example which included ble_flash.c

    Has the ble_flash code been replaced by soft device routines?

Reply
  • Hello Ole, thanks for the response!

    I'm a bit confused by your comment about the revision 2 of the device. I am already using SDK 5.1.0 and soft device 6.0.0. I am currently designing with nrf51822 evaluation kit, with a chip labeled N51822 QFAAFA 1328AA.

    Is this chip compatible with the SDK 5.1.0 and Soft Device 6.0.0?

    Does the ble_flash module in the SDK 5.1.0 still require the radio notification event handler to be called?

    If I'm not using ble_flash module code in my application can I remove the call to ble_flash_on_radio_active_evt? I based my application off the ancs example which included ble_flash.c

    Has the ble_flash code been replaced by soft device routines?

Children
Related