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