テスト用です。

Dependencies:   mbed

Committer:
jksoft
Date:
Tue Oct 11 11:09:42 2016 +0000
Revision:
0:8468a4403fea
SB??ver;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:8468a4403fea 1 /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
jksoft 0:8468a4403fea 2 *
jksoft 0:8468a4403fea 3 * The information contained herein is property of Nordic Semiconductor ASA.
jksoft 0:8468a4403fea 4 * Terms and conditions of usage are described in detail in NORDIC
jksoft 0:8468a4403fea 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
jksoft 0:8468a4403fea 6 *
jksoft 0:8468a4403fea 7 * Licensees are granted free, non-transferable use of the information. NO
jksoft 0:8468a4403fea 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
jksoft 0:8468a4403fea 9 * the file.
jksoft 0:8468a4403fea 10 */
jksoft 0:8468a4403fea 11
jksoft 0:8468a4403fea 12 /** @file
jksoft 0:8468a4403fea 13 *
jksoft 0:8468a4403fea 14 * @defgroup ble_radio_notification Radio Notification Event Handler
jksoft 0:8468a4403fea 15 * @{
jksoft 0:8468a4403fea 16 * @ingroup ble_sdk_lib
jksoft 0:8468a4403fea 17 * @brief Module for propagating Radio Notification events to the application.
jksoft 0:8468a4403fea 18 */
jksoft 0:8468a4403fea 19
jksoft 0:8468a4403fea 20 #ifndef BLE_RADIO_NOTIFICATION_H__
jksoft 0:8468a4403fea 21 #define BLE_RADIO_NOTIFICATION_H__
jksoft 0:8468a4403fea 22
jksoft 0:8468a4403fea 23 #include <stdint.h>
jksoft 0:8468a4403fea 24 #include <stdbool.h>
jksoft 0:8468a4403fea 25 #include "nrf_soc.h"
jksoft 0:8468a4403fea 26
jksoft 0:8468a4403fea 27 /**@brief Application radio notification event handler type. */
jksoft 0:8468a4403fea 28 typedef void (*ble_radio_notification_evt_handler_t) (bool radio_active);
jksoft 0:8468a4403fea 29
jksoft 0:8468a4403fea 30 /**@brief Function for initializing the Radio Notification module.
jksoft 0:8468a4403fea 31 *
jksoft 0:8468a4403fea 32 * @param[in] irq_priority Interrupt priority for the Radio Notification interrupt handler.
jksoft 0:8468a4403fea 33 * @param[in] distance The time from an Active event until the radio is activated.
jksoft 0:8468a4403fea 34 * @param[in] evt_handler Handler to be executed when a radio notification event has been
jksoft 0:8468a4403fea 35 * received.
jksoft 0:8468a4403fea 36 *
jksoft 0:8468a4403fea 37 * @return NRF_SUCCESS on successful initialization, otherwise an error code.
jksoft 0:8468a4403fea 38 */
jksoft 0:8468a4403fea 39 uint32_t ble_radio_notification_init(nrf_app_irq_priority_t irq_priority,
jksoft 0:8468a4403fea 40 nrf_radio_notification_distance_t distance,
jksoft 0:8468a4403fea 41 ble_radio_notification_evt_handler_t evt_handler);
jksoft 0:8468a4403fea 42
jksoft 0:8468a4403fea 43 #endif // BLE_RADIO_NOTIFICATION_H__
jksoft 0:8468a4403fea 44
jksoft 0:8468a4403fea 45 /** @} */