Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_RCBController2 by
HRM1017/nordic/nrf-sdk/ble/ble_radio_notification.h@7:505a9a98b776, 2015-03-14 (annotated)
- Committer:
- lipoyang
- Date:
- Sat Mar 14 11:51:38 2015 +0000
- Revision:
- 7:505a9a98b776
- Parent:
- 4:ebda47d22091
- adjust servo center position
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 1:48f6e08a3ac2 | 1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
jksoft | 1:48f6e08a3ac2 | 2 | * |
jksoft | 1:48f6e08a3ac2 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
jksoft | 1:48f6e08a3ac2 | 4 | * Terms and conditions of usage are described in detail in NORDIC |
jksoft | 1:48f6e08a3ac2 | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
jksoft | 1:48f6e08a3ac2 | 6 | * |
jksoft | 1:48f6e08a3ac2 | 7 | * Licensees are granted free, non-transferable use of the information. NO |
jksoft | 1:48f6e08a3ac2 | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
jksoft | 1:48f6e08a3ac2 | 9 | * the file. |
jksoft | 1:48f6e08a3ac2 | 10 | */ |
jksoft | 1:48f6e08a3ac2 | 11 | |
jksoft | 1:48f6e08a3ac2 | 12 | /** @file |
jksoft | 1:48f6e08a3ac2 | 13 | * |
jksoft | 1:48f6e08a3ac2 | 14 | * @defgroup ble_radio_notification Radio Notification Event Handler |
jksoft | 1:48f6e08a3ac2 | 15 | * @{ |
jksoft | 1:48f6e08a3ac2 | 16 | * @ingroup ble_sdk_lib |
jksoft | 1:48f6e08a3ac2 | 17 | * @brief Module for propagating Radio Notification events to the application. |
jksoft | 1:48f6e08a3ac2 | 18 | */ |
jksoft | 1:48f6e08a3ac2 | 19 | |
jksoft | 1:48f6e08a3ac2 | 20 | #ifndef BLE_RADIO_NOTIFICATION_H__ |
jksoft | 1:48f6e08a3ac2 | 21 | #define BLE_RADIO_NOTIFICATION_H__ |
jksoft | 1:48f6e08a3ac2 | 22 | |
jksoft | 1:48f6e08a3ac2 | 23 | #include <stdint.h> |
jksoft | 1:48f6e08a3ac2 | 24 | #include <stdbool.h> |
jksoft | 1:48f6e08a3ac2 | 25 | #include "nrf_soc.h" |
jksoft | 1:48f6e08a3ac2 | 26 | |
jksoft | 1:48f6e08a3ac2 | 27 | /**@brief Application radio notification event handler type. */ |
jksoft | 1:48f6e08a3ac2 | 28 | typedef void (*ble_radio_notification_evt_handler_t) (bool radio_active); |
jksoft | 1:48f6e08a3ac2 | 29 | |
jksoft | 1:48f6e08a3ac2 | 30 | /**@brief Function for initializing the Radio Notification module. |
jksoft | 1:48f6e08a3ac2 | 31 | * |
jksoft | 1:48f6e08a3ac2 | 32 | * @param[in] irq_priority Interrupt priority for the Radio Notification interrupt handler. |
jksoft | 1:48f6e08a3ac2 | 33 | * @param[in] distance The time from an Active event until the radio is activated. |
jksoft | 1:48f6e08a3ac2 | 34 | * @param[in] evt_handler Handler to be executed when a radio notification event has been |
jksoft | 1:48f6e08a3ac2 | 35 | * received. |
jksoft | 1:48f6e08a3ac2 | 36 | * |
jksoft | 1:48f6e08a3ac2 | 37 | * @return NRF_SUCCESS on successful initialization, otherwise an error code. |
jksoft | 1:48f6e08a3ac2 | 38 | */ |
jksoft | 1:48f6e08a3ac2 | 39 | uint32_t ble_radio_notification_init(nrf_app_irq_priority_t irq_priority, |
jksoft | 1:48f6e08a3ac2 | 40 | nrf_radio_notification_distance_t distance, |
jksoft | 1:48f6e08a3ac2 | 41 | ble_radio_notification_evt_handler_t evt_handler); |
jksoft | 1:48f6e08a3ac2 | 42 | |
jksoft | 1:48f6e08a3ac2 | 43 | #endif // BLE_RADIO_NOTIFICATION_H__ |
jksoft | 1:48f6e08a3ac2 | 44 | |
jksoft | 1:48f6e08a3ac2 | 45 | /** @} */ |