High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 483:7595444f93d6, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:52:01 2015 +0100
- Parent:
- 482:a4c6ac278fd4
- Child:
- 484:c39d85d2e02f
- Commit message:
- Synchronized with git rev 6c94ed66
Author: Rohit Grover
add include of stdint.h to UUID.h
Changed in this revision
common/blecommon.h | Show annotated file Show diff for this revision Revisions of this file |
public/UUID.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/common/blecommon.h Fri Jun 19 15:52:01 2015 +0100 +++ b/common/blecommon.h Fri Jun 19 15:52:01 2015 +0100 @@ -117,15 +117,16 @@ /**************************************************************************/ typedef enum ble_error_e { - BLE_ERROR_NONE = 0, /**< No error */ - BLE_ERROR_BUFFER_OVERFLOW = 1, /**< The requested action would cause a buffer overflow and has been aborted */ - BLE_ERROR_NOT_IMPLEMENTED = 2, /**< Requested a feature that isn't yet implement or isn't supported by the target HW */ - BLE_ERROR_PARAM_OUT_OF_RANGE = 3, /**< One of the supplied parameters is outside the valid range */ - BLE_ERROR_INVALID_PARAM = 4, /**< One of the supplied parameters is invalid */ - BLE_STACK_BUSY = 5, /**< The stack is busy */ - BLE_ERROR_INVALID_STATE = 6, /**< Invalid state. */ - BLE_ERROR_NO_MEM = 7, /**< Out of Memory */ - BLE_ERROR_UNSPECIFIED = 8, /**< Unknown error. */ + BLE_ERROR_NONE = 0, /**< No error */ + BLE_ERROR_BUFFER_OVERFLOW = 1, /**< The requested action would cause a buffer overflow and has been aborted */ + BLE_ERROR_NOT_IMPLEMENTED = 2, /**< Requested a feature that isn't yet implement or isn't supported by the target HW */ + BLE_ERROR_PARAM_OUT_OF_RANGE = 3, /**< One of the supplied parameters is outside the valid range */ + BLE_ERROR_INVALID_PARAM = 4, /**< One of the supplied parameters is invalid */ + BLE_STACK_BUSY = 5, /**< The stack is busy */ + BLE_ERROR_INVALID_STATE = 6, /**< Invalid state. */ + BLE_ERROR_NO_MEM = 7, /**< Out of Memory */ + BLE_ERROR_OPERATION_NOT_PERMITTED = 8, + BLE_ERROR_UNSPECIFIED = 9, /**< Unknown error. */ } ble_error_t; #ifdef __cplusplus
--- a/public/UUID.h Fri Jun 19 15:52:01 2015 +0100 +++ b/public/UUID.h Fri Jun 19 15:52:01 2015 +0100 @@ -17,6 +17,7 @@ #ifndef __UUID_H__ #define __UUID_H__ +#include <stdint.h> #include <string.h> #include "blecommon.h" @@ -29,6 +30,7 @@ }; typedef uint16_t ShortUUIDBytes_t; + static const unsigned LENGTH_OF_LONG_UUID = 16; typedef uint8_t LongUUIDBytes_t[LENGTH_OF_LONG_UUID];