iOSのBLEコントローラアプリ「RCBController」とmbed HRM1017を接続し、RCサーボモータを操作するテストプログラムです。
Dependencies: BLE_API_Native_IRC Servo mbed
Fork of BLE_RCBController by
- 古いBLEライブラリを使っているのでプラットフォームは”Nordic nRF51822”を選択してください。
- ライブラリ類はUpdateしないでください。コンパイルエラーになります。
うまく接続できない時は、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアしてみてください。
BLE_API_Native_IRC/hw/nRF51822n/nordic/nrf-sdk/ble/ble_radio_notification.h@0:8c643bfe55b7, 2014-07-10 (annotated)
- Committer:
- jksoft
- Date:
- Thu Jul 10 14:21:52 2014 +0000
- Revision:
- 0:8c643bfe55b7
??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:8c643bfe55b7 | 1 | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
jksoft | 0:8c643bfe55b7 | 2 | * |
jksoft | 0:8c643bfe55b7 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
jksoft | 0:8c643bfe55b7 | 4 | * Terms and conditions of usage are described in detail in NORDIC |
jksoft | 0:8c643bfe55b7 | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
jksoft | 0:8c643bfe55b7 | 6 | * |
jksoft | 0:8c643bfe55b7 | 7 | * Licensees are granted free, non-transferable use of the information. NO |
jksoft | 0:8c643bfe55b7 | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
jksoft | 0:8c643bfe55b7 | 9 | * the file. |
jksoft | 0:8c643bfe55b7 | 10 | */ |
jksoft | 0:8c643bfe55b7 | 11 | |
jksoft | 0:8c643bfe55b7 | 12 | /** @file |
jksoft | 0:8c643bfe55b7 | 13 | * |
jksoft | 0:8c643bfe55b7 | 14 | * @defgroup ble_radio_notification Radio Notification Event Handler |
jksoft | 0:8c643bfe55b7 | 15 | * @{ |
jksoft | 0:8c643bfe55b7 | 16 | * @ingroup ble_sdk_lib |
jksoft | 0:8c643bfe55b7 | 17 | * @brief Module for propagating Radio Notification events to the application. |
jksoft | 0:8c643bfe55b7 | 18 | */ |
jksoft | 0:8c643bfe55b7 | 19 | |
jksoft | 0:8c643bfe55b7 | 20 | #ifndef BLE_RADIO_NOTIFICATION_H__ |
jksoft | 0:8c643bfe55b7 | 21 | #define BLE_RADIO_NOTIFICATION_H__ |
jksoft | 0:8c643bfe55b7 | 22 | |
jksoft | 0:8c643bfe55b7 | 23 | #include <stdint.h> |
jksoft | 0:8c643bfe55b7 | 24 | #include <stdbool.h> |
jksoft | 0:8c643bfe55b7 | 25 | #include "nordic_global.h" |
jksoft | 0:8c643bfe55b7 | 26 | #include "nrf_soc.h" |
jksoft | 0:8c643bfe55b7 | 27 | |
jksoft | 0:8c643bfe55b7 | 28 | /**@brief Application radio notification event handler type. */ |
jksoft | 0:8c643bfe55b7 | 29 | typedef void (*ble_radio_notification_evt_handler_t) (bool radio_active); |
jksoft | 0:8c643bfe55b7 | 30 | |
jksoft | 0:8c643bfe55b7 | 31 | /**@brief Function for initializing the Radio Notification module. |
jksoft | 0:8c643bfe55b7 | 32 | * |
jksoft | 0:8c643bfe55b7 | 33 | * @param[in] irq_priority Interrupt priority for the Radio Notification interrupt handler. |
jksoft | 0:8c643bfe55b7 | 34 | * @param[in] distance The time from an Active event until the radio is activated. |
jksoft | 0:8c643bfe55b7 | 35 | * @param[in] evt_handler Handler to be executed when a radio notification event has been |
jksoft | 0:8c643bfe55b7 | 36 | * received. |
jksoft | 0:8c643bfe55b7 | 37 | * |
jksoft | 0:8c643bfe55b7 | 38 | * @return NRF_SUCCESS on successful initialization, otherwise an error code. |
jksoft | 0:8c643bfe55b7 | 39 | */ |
jksoft | 0:8c643bfe55b7 | 40 | uint32_t ble_radio_notification_init(nrf_app_irq_priority_t irq_priority, |
jksoft | 0:8c643bfe55b7 | 41 | nrf_radio_notification_distance_t distance, |
jksoft | 0:8c643bfe55b7 | 42 | ble_radio_notification_evt_handler_t evt_handler); |
jksoft | 0:8c643bfe55b7 | 43 | |
jksoft | 0:8c643bfe55b7 | 44 | #endif // BLE_RADIO_NOTIFICATION_H__ |
jksoft | 0:8c643bfe55b7 | 45 | |
jksoft | 0:8c643bfe55b7 | 46 | /** @} */ |