konashi/SBBLEのテスト

Dependencies:   BLE_API mbed

Fork of BLE_LoopbackUART by Bluetooth Low Energy

Committer:
robo8080
Date:
Sun Aug 17 00:53:23 2014 +0000
Revision:
8:a62b8f7d5dcf
Parent:
5:61109bce11fe
DeviceName??

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robo8080 5:61109bce11fe 1 /* mbed Microcontroller Library
robo8080 5:61109bce11fe 2 * Copyright (c) 2006-2013 ARM Limited
robo8080 5:61109bce11fe 3 *
robo8080 5:61109bce11fe 4 * Licensed under the Apache License, Version 2.0 (the "License");
robo8080 5:61109bce11fe 5 * you may not use this file except in compliance with the License.
robo8080 5:61109bce11fe 6 * You may obtain a copy of the License at
robo8080 5:61109bce11fe 7 *
robo8080 5:61109bce11fe 8 * http://www.apache.org/licenses/LICENSE-2.0
robo8080 5:61109bce11fe 9 *
robo8080 5:61109bce11fe 10 * Unless required by applicable law or agreed to in writing, software
robo8080 5:61109bce11fe 11 * distributed under the License is distributed on an "AS IS" BASIS,
robo8080 5:61109bce11fe 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
robo8080 5:61109bce11fe 13 * See the License for the specific language governing permissions and
robo8080 5:61109bce11fe 14 * limitations under the License.
robo8080 5:61109bce11fe 15 */
robo8080 5:61109bce11fe 16
robo8080 5:61109bce11fe 17 #ifndef _CUSTOM_HELPER_H_
robo8080 5:61109bce11fe 18 #define _CUSTOM_HELPER_H_
robo8080 5:61109bce11fe 19
robo8080 5:61109bce11fe 20 #ifdef __cplusplus
robo8080 5:61109bce11fe 21 extern "C" {
robo8080 5:61109bce11fe 22 #endif
robo8080 5:61109bce11fe 23
robo8080 5:61109bce11fe 24 #include "common/common.h"
robo8080 5:61109bce11fe 25 #include "ble.h"
robo8080 5:61109bce11fe 26 #include "UUID.h"
robo8080 5:61109bce11fe 27
robo8080 5:61109bce11fe 28 uint8_t custom_add_uuid_base(uint8_t const *const p_uuid_base);
robo8080 5:61109bce11fe 29 error_t custom_decode_uuid(uint8_t const *const p_uuid_base,
robo8080 5:61109bce11fe 30 ble_uuid_t *p_uuid);
robo8080 5:61109bce11fe 31 ble_uuid_t custom_convert_to_nordic_uuid(const UUID &uuid);
robo8080 5:61109bce11fe 32
robo8080 5:61109bce11fe 33 error_t custom_add_in_characteristic(uint16_t service_handle,
robo8080 5:61109bce11fe 34 ble_uuid_t *p_uuid,
robo8080 5:61109bce11fe 35 uint8_t properties,
robo8080 5:61109bce11fe 36 uint8_t *p_data,
robo8080 5:61109bce11fe 37 uint16_t min_length,
robo8080 5:61109bce11fe 38 uint16_t max_length,
robo8080 5:61109bce11fe 39 ble_gatts_char_handles_t *p_char_handle);
robo8080 5:61109bce11fe 40
robo8080 5:61109bce11fe 41 #ifdef __cplusplus
robo8080 5:61109bce11fe 42 }
robo8080 5:61109bce11fe 43 #endif
robo8080 5:61109bce11fe 44
robo8080 5:61109bce11fe 45 #endif // ifndef _CUSTOM_HELPER_H_