changed low freq. clock source to IRC

Dependents:   BLE_ANCS_SDAPI_IRC

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 "nordic_global.h"
00026 #include "nrf_soc.h"
00027 
00028 /**@brief Application radio notification event handler type. */
00029 typedef void (*ble_radio_notification_evt_handler_t) (bool radio_active);
00030 
00031 /**@brief Function for initializing the Radio Notification module.
00032  *
00033  * @param[in]  irq_priority   Interrupt priority for the Radio Notification interrupt handler.
00034  * @param[in]  distance       The time from an Active event until the radio is activated.
00035  * @param[in]  evt_handler    Handler to be executed when a radio notification event has been
00036  *                            received.
00037  *
00038  * @return     NRF_SUCCESS on successful initialization, otherwise an error code.
00039  */
00040 uint32_t ble_radio_notification_init(nrf_app_irq_priority_t               irq_priority,
00041                                      nrf_radio_notification_distance_t    distance,
00042                                      ble_radio_notification_evt_handler_t evt_handler);
00043 
00044 #endif // BLE_RADIO_NOTIFICATION_H__
00045 
00046 /** @} */