Compatible with Keewi v1
Fork of BLE_API by
blecommon.h@68:dcadab8a56dd, 2014-06-05 (annotated)
- Committer:
- Rohit Grover
- Date:
- Thu Jun 05 08:52:20 2014 +0100
- Revision:
- 68:dcadab8a56dd
- Parent:
- 34:da2ea8cd6216
white space diffs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ktownsend | 27:4a83843f04b0 | 1 | /* mbed Microcontroller Library |
ktownsend | 27:4a83843f04b0 | 2 | * Copyright (c) 2006-2013 ARM Limited |
ktownsend | 27:4a83843f04b0 | 3 | * |
ktownsend | 27:4a83843f04b0 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ktownsend | 27:4a83843f04b0 | 5 | * you may not use this file except in compliance with the License. |
ktownsend | 27:4a83843f04b0 | 6 | * You may obtain a copy of the License at |
ktownsend | 27:4a83843f04b0 | 7 | * |
ktownsend | 27:4a83843f04b0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
ktownsend | 27:4a83843f04b0 | 9 | * |
ktownsend | 27:4a83843f04b0 | 10 | * Unless required by applicable law or agreed to in writing, software |
ktownsend | 27:4a83843f04b0 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
ktownsend | 27:4a83843f04b0 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ktownsend | 27:4a83843f04b0 | 13 | * See the License for the specific language governing permissions and |
ktownsend | 27:4a83843f04b0 | 14 | * limitations under the License. |
ktownsend | 27:4a83843f04b0 | 15 | */ |
Rohit Grover |
34:da2ea8cd6216 | 16 | |
ktownsend | 0:ace2e8d3ce79 | 17 | #ifndef __BLE_COMMON_H__ |
ktownsend | 0:ace2e8d3ce79 | 18 | #define __BLE_COMMON_H__ |
ktownsend | 0:ace2e8d3ce79 | 19 | |
bogdanm | 31:2c94f0501807 | 20 | #define NRF51 |
bogdanm | 31:2c94f0501807 | 21 | #define DEBUG_NRF_USER |
bogdanm | 31:2c94f0501807 | 22 | #define BLE_STACK_SUPPORT_REQD |
bogdanm | 31:2c94f0501807 | 23 | #define BOARD_PCA10001 |
bogdanm | 31:2c94f0501807 | 24 | |
ktownsend | 4:50a31ff5f974 | 25 | #ifdef __cplusplus |
ktownsend | 4:50a31ff5f974 | 26 | extern "C" { |
ktownsend | 4:50a31ff5f974 | 27 | #endif |
ktownsend | 4:50a31ff5f974 | 28 | |
ktownsend | 0:ace2e8d3ce79 | 29 | #include <stdint.h> |
ktownsend | 0:ace2e8d3ce79 | 30 | |
ktownsend | 21:5442f7c70e71 | 31 | /**************************************************************************/ |
ktownsend | 21:5442f7c70e71 | 32 | /*! |
ktownsend | 21:5442f7c70e71 | 33 | \brief Error codes for the BLE API |
ktownsend | 21:5442f7c70e71 | 34 | */ |
ktownsend | 21:5442f7c70e71 | 35 | /**************************************************************************/ |
ktownsend | 0:ace2e8d3ce79 | 36 | typedef enum ble_error_e |
ktownsend | 0:ace2e8d3ce79 | 37 | { |
Rohit Grover |
34:da2ea8cd6216 | 38 | BLE_ERROR_NONE = 0, /**< No error */ |
Rohit Grover |
34:da2ea8cd6216 | 39 | BLE_ERROR_BUFFER_OVERFLOW = 1, /**< The requested action would |
Rohit Grover |
34:da2ea8cd6216 | 40 | *cause a buffer overflow and has |
Rohit Grover |
34:da2ea8cd6216 | 41 | *been aborted */ |
Rohit Grover |
34:da2ea8cd6216 | 42 | BLE_ERROR_NOT_IMPLEMENTED = 2, /**< Requested a feature that |
Rohit Grover |
34:da2ea8cd6216 | 43 | *isn't yet implement or isn't |
Rohit Grover |
34:da2ea8cd6216 | 44 | *supported by the target HW */ |
Rohit Grover |
34:da2ea8cd6216 | 45 | BLE_ERROR_PARAM_OUT_OF_RANGE = 3 /**< One of the supplied |
Rohit Grover |
34:da2ea8cd6216 | 46 | *parameters is outside the valid |
Rohit Grover |
34:da2ea8cd6216 | 47 | *range */ |
ktownsend | 0:ace2e8d3ce79 | 48 | } ble_error_t; |
ktownsend | 0:ace2e8d3ce79 | 49 | |
ktownsend | 4:50a31ff5f974 | 50 | #ifdef __cplusplus |
ktownsend | 4:50a31ff5f974 | 51 | } |
ktownsend | 4:50a31ff5f974 | 52 | #endif |
ktownsend | 0:ace2e8d3ce79 | 53 | |
Rohit Grover |
34:da2ea8cd6216 | 54 | #endif // ifndef __BLE_COMMON_H__ |