iOSのBLEコントローラアプリ「RCBController」と接続し、コントローラの操作を取得するサンプルプログラムです。 mbed HRM1017で動作を確認しています。 2014.08.20時点でのBLEライブラリに対応しました。

Dependencies:   BLE_API mbed

Fork of BLE_RCBController by Junichi Katsu

Committer:
jksoft
Date:
Wed Aug 20 13:41:01 2014 +0000
Revision:
4:ebda47d22091
Parent:
nRF51822/nordic/nrf-sdk/ble/ble_radio_notification.h@1:48f6e08a3ac2
?????????

Who changed what in which revision?

UserRevisionLine numberNew 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 /** @} */