iOSのBLEコントローラアプリ「RCBController」とmbed HRM1017を接続し、RCサーボモータを操作するテストプログラムです。

Dependencies:   BLE_API_Native_IRC Servo mbed

Fork of BLE_RCBController by Junichi Katsu

  • 古いBLEライブラリを使っているのでプラットフォームは”Nordic nRF51822”を選択してください。
  • ライブラリ類はUpdateしないでください。コンパイルエラーになります。

うまく接続できない時は、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアしてみてください。

/media/uploads/robo8080/img_1560.jpg

Committer:
jksoft
Date:
Thu Jul 10 14:21:52 2014 +0000
Revision:
0:8c643bfe55b7
??

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:8c643bfe55b7 1 /* Copyright (c) 2013 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
jksoft 0:8c643bfe55b7 13 /** @file
jksoft 0:8c643bfe55b7 14 *
jksoft 0:8c643bfe55b7 15 * @defgroup ble_rpc_cmd_decoder_gatts GATTS Command Decoder
jksoft 0:8c643bfe55b7 16 * @{
jksoft 0:8c643bfe55b7 17 * @ingroup ble_sdk_lib_serialization
jksoft 0:8c643bfe55b7 18 *
jksoft 0:8c643bfe55b7 19 * @brief Decoder for serialized GATTS commands from Application Chip.
jksoft 0:8c643bfe55b7 20 *
jksoft 0:8c643bfe55b7 21 * @details This file contains the declaration of the function that decodes the serialized GATTS
jksoft 0:8c643bfe55b7 22 * commands from Application Chip and calls the appropriate BLE stack API.
jksoft 0:8c643bfe55b7 23 */
jksoft 0:8c643bfe55b7 24
jksoft 0:8c643bfe55b7 25 #ifndef BLE_RPC_CMD_DECODER_GATTS_H__
jksoft 0:8c643bfe55b7 26 #define BLE_RPC_CMD_DECODER_GATTS_H__
jksoft 0:8c643bfe55b7 27
jksoft 0:8c643bfe55b7 28 #include <stdint.h>
jksoft 0:8c643bfe55b7 29
jksoft 0:8c643bfe55b7 30 /**@brief Function for processing the encoded GATTS command from application chip.
jksoft 0:8c643bfe55b7 31 *
jksoft 0:8c643bfe55b7 32 * @details This function will decode the encoded command and call the appropriate BLE Stack
jksoft 0:8c643bfe55b7 33 * API. It will then create a Command Response packet with the return value from the
jksoft 0:8c643bfe55b7 34 * stack API encoded in it and will send it to the transport layer for transmission to
jksoft 0:8c643bfe55b7 35 * the application controller chip.
jksoft 0:8c643bfe55b7 36
jksoft 0:8c643bfe55b7 37 * @param[in] p_command The encoded command.
jksoft 0:8c643bfe55b7 38 * @param[in] op_code Operation code of the command.
jksoft 0:8c643bfe55b7 39 * @param[in] command_len Length of the encoded command.
jksoft 0:8c643bfe55b7 40 *
jksoft 0:8c643bfe55b7 41 * @retval NRF_SUCCESS If the decoding of the command was successful, the soft device API
jksoft 0:8c643bfe55b7 42 * was called, and the command response was sent to peer, otherwise an
jksoft 0:8c643bfe55b7 43 * error code.
jksoft 0:8c643bfe55b7 44 * If the transport layer returns an error code while sending
jksoft 0:8c643bfe55b7 45 * the Command Response, the same error code will be returned by this
jksoft 0:8c643bfe55b7 46 * function (see @ref hci_transport_pkt_write for the list of
jksoft 0:8c643bfe55b7 47 * error codes).
jksoft 0:8c643bfe55b7 48 */
jksoft 0:8c643bfe55b7 49 uint32_t ble_rpc_cmd_gatts_decode(uint8_t * p_command, uint8_t op_code, uint32_t command_len);
jksoft 0:8c643bfe55b7 50
jksoft 0:8c643bfe55b7 51 #endif // BLE_RPC_CMD_DECODER_GATTS_H__
jksoft 0:8c643bfe55b7 52
jksoft 0:8c643bfe55b7 53 /** @} */