![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_radio_notification_init | ( | uint32_t | distance, |
| ble_radio_notification_evt_handler_t | evt_handler ) |
#include <ble_radio_notification.h>
Function for initializing the Radio Notification module.
To ensure that the radio notification signal behaves in a consistent way, the radio notifications must be configured when there is no protocol stack or other SoftDevice activity in progress. It is recommended that the radio notification signal is configured directly after the SoftDevice has been enabled.
| [in] | distance | Distance between the ACTIVE notification signal and start of radio event. |
| [in] | evt_handler | Handler to be called when a radio notification event has been received. |
| NRF_SUCCESS | on successful initialization. |
| NRF_ERROR_NULL | if evt_handler is NULL. |
| NRF_ERROR_INVALID_PARAM | if the distance is invalid or radio notification type is not properly configured. |
| NRF_ERROR_INVALID_STATE | if the protocol stack or other SoftDevice is running. Stop all running activities and retry. |