Clone of the nRF51822 repository from github The correct home is https://github.com/lancaster-university/nRF51822
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
btle/custom/custom_helper.h@6:bbb4357dc135, 2014-05-28 (annotated)
- Committer:
- Rohit Grover
- Date:
- Wed May 28 12:55:18 2014 +0100
- Revision:
- 6:bbb4357dc135
- Parent:
- 0:eff01767de02
- Child:
- 8:2214f1df6a6a
running uncrustify against a few sources
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 0:eff01767de02 | 1 | /* mbed Microcontroller Library |
bogdanm | 0:eff01767de02 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 0:eff01767de02 | 3 | * |
bogdanm | 0:eff01767de02 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 0:eff01767de02 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 0:eff01767de02 | 6 | * You may obtain a copy of the License at |
bogdanm | 0:eff01767de02 | 7 | * |
bogdanm | 0:eff01767de02 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 0:eff01767de02 | 9 | * |
bogdanm | 0:eff01767de02 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 0:eff01767de02 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 0:eff01767de02 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 0:eff01767de02 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 0:eff01767de02 | 14 | * limitations under the License. |
bogdanm | 0:eff01767de02 | 15 | */ |
bogdanm | 0:eff01767de02 | 16 | |
bogdanm | 0:eff01767de02 | 17 | #ifndef _CUSTOM_HELPER_H_ |
bogdanm | 0:eff01767de02 | 18 | #define _CUSTOM_HELPER_H_ |
bogdanm | 0:eff01767de02 | 19 | |
bogdanm | 0:eff01767de02 | 20 | #ifdef __cplusplus |
Rohit Grover |
6:bbb4357dc135 | 21 | extern "C" { |
bogdanm | 0:eff01767de02 | 22 | #endif |
bogdanm | 0:eff01767de02 | 23 | |
bogdanm | 0:eff01767de02 | 24 | #include "common/common.h" |
bogdanm | 0:eff01767de02 | 25 | #include "ble.h" |
bogdanm | 0:eff01767de02 | 26 | |
Rohit Grover |
6:bbb4357dc135 | 27 | uint8_t custom_add_uuid_base(uint8_t const *const p_uuid_base); |
Rohit Grover |
6:bbb4357dc135 | 28 | error_t custom_decode_uuid(uint8_t const *const p_uuid_base, |
Rohit Grover |
6:bbb4357dc135 | 29 | ble_uuid_t *p_uuid); |
bogdanm | 0:eff01767de02 | 30 | |
Rohit Grover |
6:bbb4357dc135 | 31 | error_t custom_add_in_characteristic(uint16_t service_handle, |
Rohit Grover |
6:bbb4357dc135 | 32 | ble_uuid_t *p_uuid, |
Rohit Grover |
6:bbb4357dc135 | 33 | uint8_t properties, |
Rohit Grover |
6:bbb4357dc135 | 34 | uint8_t *p_data, |
Rohit Grover |
6:bbb4357dc135 | 35 | uint16_t min_length, |
Rohit Grover |
6:bbb4357dc135 | 36 | uint16_t max_length, |
Rohit Grover |
6:bbb4357dc135 | 37 | ble_gatts_char_handles_t *p_char_handle); |
bogdanm | 0:eff01767de02 | 38 | |
bogdanm | 0:eff01767de02 | 39 | #ifdef __cplusplus |
bogdanm | 0:eff01767de02 | 40 | } |
bogdanm | 0:eff01767de02 | 41 | #endif |
bogdanm | 0:eff01767de02 | 42 | |
Rohit Grover |
6:bbb4357dc135 | 43 | #endif // ifndef _CUSTOM_HELPER_H_ |