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:24:20 2014 +0000
Revision:
1:48f6e08a3ac2
2014.08.20?????BLE?????????????; ???mbed?????????????????; mbed HRM1017; Nordic nRF51822

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
jksoft 1:48f6e08a3ac2 13 /* Attention!
jksoft 1:48f6e08a3ac2 14 * To maintain compliance with Nordic Semiconductor ASA’s Bluetooth profile
jksoft 1:48f6e08a3ac2 15 * qualification listings, this section of source code must not be modified.
jksoft 1:48f6e08a3ac2 16 */
jksoft 1:48f6e08a3ac2 17
jksoft 1:48f6e08a3ac2 18 #ifndef BLE_SENSOR_LOCATION_H__
jksoft 1:48f6e08a3ac2 19 #define BLE_SENSOR_LOCATION_H__
jksoft 1:48f6e08a3ac2 20
jksoft 1:48f6e08a3ac2 21 typedef enum {
jksoft 1:48f6e08a3ac2 22 BLE_SENSOR_LOCATION_OTHER = 0 , /**<-- Other */
jksoft 1:48f6e08a3ac2 23 BLE_SENSOR_LOCATION_TOP_OF_SHOE = 1 , /**<-- Top of shoe */
jksoft 1:48f6e08a3ac2 24 BLE_SENSOR_LOCATION_IN_SHOE = 2 , /**<-- In shoe */
jksoft 1:48f6e08a3ac2 25 BLE_SENSOR_LOCATION_HIP = 3 , /**<-- Hip */
jksoft 1:48f6e08a3ac2 26 BLE_SENSOR_LOCATION_FRONT_WHEEL = 4 , /**<-- Front Wheel */
jksoft 1:48f6e08a3ac2 27 BLE_SENSOR_LOCATION_LEFT_CRANK = 5 , /**<-- Left Crank */
jksoft 1:48f6e08a3ac2 28 BLE_SENSOR_LOCATION_RIGHT_CRANK = 6 , /**<-- Right Crank */
jksoft 1:48f6e08a3ac2 29 BLE_SENSOR_LOCATION_LEFT_PEDAL = 7 , /**<-- Left Pedal */
jksoft 1:48f6e08a3ac2 30 BLE_SENSOR_LOCATION_RIGHT_PEDAL = 8 , /**<-- Right Pedal */
jksoft 1:48f6e08a3ac2 31 BLE_SENSOR_LOCATION_FRONT_HUB = 9 , /**<-- Front Hub */
jksoft 1:48f6e08a3ac2 32 BLE_SENSOR_LOCATION_REAR_DROPOUT = 10, /**<-- Rear Dropout */
jksoft 1:48f6e08a3ac2 33 BLE_SENSOR_LOCATION_CHAINSTAY = 11, /**<-- Chainstay */
jksoft 1:48f6e08a3ac2 34 BLE_SENSOR_LOCATION_REAR_WHEEL = 12, /**<-- Rear Wheel */
jksoft 1:48f6e08a3ac2 35 BLE_SENSOR_LOCATION_REAR_HUB = 13, /**<-- Rear Hub */
jksoft 1:48f6e08a3ac2 36 }ble_sensor_location_t;
jksoft 1:48f6e08a3ac2 37
jksoft 1:48f6e08a3ac2 38 #define BLE_NB_MAX_SENSOR_LOCATIONS 14
jksoft 1:48f6e08a3ac2 39
jksoft 1:48f6e08a3ac2 40 #endif // BLE_SENSOR_LOCATION_H__