Minor temporary patch to allow DFU packet callback
Fork of BLE_API by
blecommon.h@29:011e95ce78b8, 2014-01-16 (annotated)
- Committer:
- ktownsend
- Date:
- Thu Jan 16 22:29:53 2014 +0000
- Revision:
- 29:011e95ce78b8
- Parent:
- 27:4a83843f04b0
- Child:
- 31:2c94f0501807
Added better radio abstraction layer, moved Gatt enums from blecommon.h to GattCharacteristic.h
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 | */ |
ktownsend | 27:4a83843f04b0 | 16 | |
ktownsend | 0:ace2e8d3ce79 | 17 | #ifndef __BLE_COMMON_H__ |
ktownsend | 0:ace2e8d3ce79 | 18 | #define __BLE_COMMON_H__ |
ktownsend | 0:ace2e8d3ce79 | 19 | |
ktownsend | 4:50a31ff5f974 | 20 | #ifdef __cplusplus |
ktownsend | 4:50a31ff5f974 | 21 | extern "C" { |
ktownsend | 4:50a31ff5f974 | 22 | #endif |
ktownsend | 4:50a31ff5f974 | 23 | |
ktownsend | 0:ace2e8d3ce79 | 24 | #include <stdint.h> |
ktownsend | 0:ace2e8d3ce79 | 25 | |
ktownsend | 21:5442f7c70e71 | 26 | /**************************************************************************/ |
ktownsend | 21:5442f7c70e71 | 27 | /*! |
ktownsend | 21:5442f7c70e71 | 28 | \brief Error codes for the BLE API |
ktownsend | 21:5442f7c70e71 | 29 | */ |
ktownsend | 21:5442f7c70e71 | 30 | /**************************************************************************/ |
ktownsend | 0:ace2e8d3ce79 | 31 | typedef enum ble_error_e |
ktownsend | 0:ace2e8d3ce79 | 32 | { |
ktownsend | 21:5442f7c70e71 | 33 | BLE_ERROR_NONE = 0, /**< No error */ |
ktownsend | 21:5442f7c70e71 | 34 | BLE_ERROR_BUFFER_OVERFLOW = 1, /**< The requested action would cause a buffer overflow and has been aborted */ |
ktownsend | 21:5442f7c70e71 | 35 | BLE_ERROR_NOT_IMPLEMENTED = 2, /**< Requested a feature that isn't yet implement or isn't supported by the target HW */ |
ktownsend | 21:5442f7c70e71 | 36 | BLE_ERROR_PARAM_OUT_OF_RANGE = 3 /**< One of the supplied parameters is outside the valid range */ |
ktownsend | 0:ace2e8d3ce79 | 37 | } ble_error_t; |
ktownsend | 0:ace2e8d3ce79 | 38 | |
ktownsend | 4:50a31ff5f974 | 39 | #ifdef __cplusplus |
ktownsend | 4:50a31ff5f974 | 40 | } |
ktownsend | 4:50a31ff5f974 | 41 | #endif |
ktownsend | 0:ace2e8d3ce79 | 42 | |
ktownsend | 0:ace2e8d3ce79 | 43 | #endif |