テスト用です。

Dependencies:   mbed

Committer:
jksoft
Date:
Tue Oct 11 11:09:42 2016 +0000
Revision:
0:8468a4403fea
SB??ver;

Who changed what in which revision?

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