Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ble_radio_notification.h Source File

ble_radio_notification.h

Go to the documentation of this file.
00001 /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is property of Nordic Semiconductor ASA.
00004  * Terms and conditions of usage are described in detail in NORDIC
00005  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  */
00011 
00012 /** @file
00013  *
00014  * @defgroup ble_radio_notification Radio Notification Event Handler
00015  * @{
00016  * @ingroup ble_sdk_lib
00017  * @brief Module for propagating Radio Notification events to the application.
00018  */
00019 
00020 #ifndef BLE_RADIO_NOTIFICATION_H__
00021 #define BLE_RADIO_NOTIFICATION_H__
00022 
00023 #include <stdint.h>
00024 #include <stdbool.h>
00025 #include "nrf_soc.h"
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 /**@brief Application radio notification event handler type. */
00032 typedef void (*ble_radio_notification_evt_handler_t) (bool radio_active);
00033 
00034 /**@brief Function for initializing the Radio Notification module.
00035  *
00036  * @param[in]  irq_priority   Interrupt priority for the Radio Notification interrupt handler.
00037  * @param[in]  distance       The time from an Active event until the radio is activated.
00038  * @param[in]  evt_handler    Handler to be executed when a radio notification event has been
00039  *                            received.
00040  *
00041  * @return     NRF_SUCCESS on successful initialization, otherwise an error code.
00042  */
00043 uint32_t ble_radio_notification_init(nrf_app_irq_priority_t               irq_priority,
00044                                      nrf_radio_notification_distance_t    distance,
00045                                      ble_radio_notification_evt_handler_t evt_handler);
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 #endif // BLE_RADIO_NOTIFICATION_H__
00052 
00053 /** @} */