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/s110/softdevice_assert.h@1:48f6e08a3ac2
?????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 1:48f6e08a3ac2 1 /*
jksoft 1:48f6e08a3ac2 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
jksoft 1:48f6e08a3ac2 3 *
jksoft 1:48f6e08a3ac2 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
jksoft 1:48f6e08a3ac2 5 * copying, transfer or disclosure of such information is prohibited except by express written
jksoft 1:48f6e08a3ac2 6 * agreement with Nordic Semiconductor.
jksoft 1:48f6e08a3ac2 7 *
jksoft 1:48f6e08a3ac2 8 */
jksoft 1:48f6e08a3ac2 9
jksoft 1:48f6e08a3ac2 10 /** @brief Utilities for verifying program logic
jksoft 1:48f6e08a3ac2 11 */
jksoft 1:48f6e08a3ac2 12
jksoft 1:48f6e08a3ac2 13 #ifndef SOFTDEVICE_ASSERT_H_
jksoft 1:48f6e08a3ac2 14 #define SOFTDEVICE_ASSERT_H_
jksoft 1:48f6e08a3ac2 15
jksoft 1:48f6e08a3ac2 16 #include <stdint.h>
jksoft 1:48f6e08a3ac2 17
jksoft 1:48f6e08a3ac2 18 /** @brief This function handles assertions.
jksoft 1:48f6e08a3ac2 19 *
jksoft 1:48f6e08a3ac2 20 *
jksoft 1:48f6e08a3ac2 21 * @note
jksoft 1:48f6e08a3ac2 22 * This function is called when an assertion has triggered.
jksoft 1:48f6e08a3ac2 23 *
jksoft 1:48f6e08a3ac2 24 *
jksoft 1:48f6e08a3ac2 25 * @param line_num The line number where the assertion is called
jksoft 1:48f6e08a3ac2 26 * @param file_name Pointer to the file name
jksoft 1:48f6e08a3ac2 27 */
jksoft 1:48f6e08a3ac2 28 void assert_softdevice_callback(uint16_t line_num, const uint8_t *file_name);
jksoft 1:48f6e08a3ac2 29
jksoft 1:48f6e08a3ac2 30
jksoft 1:48f6e08a3ac2 31 /*lint -emacro(506, ASSERT) */ /* Suppress "Constant value Boolean */
jksoft 1:48f6e08a3ac2 32 /*lint -emacro(774, ASSERT) */ /* Suppress "Boolean within 'if' always evaluates to True" */ \
jksoft 1:48f6e08a3ac2 33 /** @brief Check intended for production code
jksoft 1:48f6e08a3ac2 34 *
jksoft 1:48f6e08a3ac2 35 * Check passes if "expr" evaluates to true. */
jksoft 1:48f6e08a3ac2 36 #define ASSERT(expr) \
jksoft 1:48f6e08a3ac2 37 if (expr) \
jksoft 1:48f6e08a3ac2 38 { \
jksoft 1:48f6e08a3ac2 39 } \
jksoft 1:48f6e08a3ac2 40 else \
jksoft 1:48f6e08a3ac2 41 { \
jksoft 1:48f6e08a3ac2 42 assert_softdevice_callback((uint16_t)__LINE__, (uint8_t *)__FILE__); \
jksoft 1:48f6e08a3ac2 43 /*lint -unreachable */ \
jksoft 1:48f6e08a3ac2 44 }
jksoft 1:48f6e08a3ac2 45
jksoft 1:48f6e08a3ac2 46 #endif /* SOFTDEVICE_ASSERT_H_ */