User's Manual

Table Of Contents
}
if(apptimer_timeout_flag)//disable PA
{
apptimer_timeout_flag=0;
nrf_gpio_pin_clear(PIN_5518CTR);
}
power_manage();
}
We have modified the source code ble_radio_notification.c that provided by nRF51 SDK, to
achieve this purpose.
The modified ble_radio_notification.c is located in the directly
\nRF51_SDK_9.0.0_2e23562_5518PA_DEMO\components\ble\ble_radio_notification of source code
package we provided.
By add the ble_radio_notification.c file to the project, the Radio Notify() function can be used to
detect if RF is active, below is the key code for the usage of Radio Notify() function:
bool m_radio_active_flag=0;
void ble_radio_active_evt(bool radio_active)
{
m_radio_active_flag=1;
}
static void radio_notification_open_init(void)
{
uint32_t err_code;
err_code = ble_radio_notification_init(NRF_APP_PRIORITY_LOW,
NRF_RADIO_NOTIFICATION_DISTANCE_800US,
COPYRIGHT ©2016 ALL RIGHTS RESERVED XunTong Tech TEL: +86 755 26675941 E-mail: nrf@freqchina.com
5