Birkbeck College Mobile and Ubiquitous Computing IoT Lab Exercise 2
Dependencies: BLE_API_Native_blog
mbed/TARGET_NRF51822/ble_err.h@0:e8fdba0ed044, 2015-03-07 (annotated)
- Committer:
- gkroussos
- Date:
- Sat Mar 07 16:34:53 2015 +0000
- Revision:
- 0:e8fdba0ed044
MUC IoT Workshop v1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gkroussos | 0:e8fdba0ed044 | 1 | /* |
gkroussos | 0:e8fdba0ed044 | 2 | * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
gkroussos | 0:e8fdba0ed044 | 3 | * |
gkroussos | 0:e8fdba0ed044 | 4 | * The information contained herein is confidential property of Nordic Semiconductor. The use, |
gkroussos | 0:e8fdba0ed044 | 5 | * copying, transfer or disclosure of such information is prohibited except by express written |
gkroussos | 0:e8fdba0ed044 | 6 | * agreement with Nordic Semiconductor. |
gkroussos | 0:e8fdba0ed044 | 7 | * |
gkroussos | 0:e8fdba0ed044 | 8 | */ |
gkroussos | 0:e8fdba0ed044 | 9 | /** |
gkroussos | 0:e8fdba0ed044 | 10 | @addtogroup BLE_COMMON |
gkroussos | 0:e8fdba0ed044 | 11 | @{ |
gkroussos | 0:e8fdba0ed044 | 12 | @addtogroup nrf_error |
gkroussos | 0:e8fdba0ed044 | 13 | @{ |
gkroussos | 0:e8fdba0ed044 | 14 | @ingroup BLE_COMMON |
gkroussos | 0:e8fdba0ed044 | 15 | @} |
gkroussos | 0:e8fdba0ed044 | 16 | |
gkroussos | 0:e8fdba0ed044 | 17 | @defgroup ble_err General error codes |
gkroussos | 0:e8fdba0ed044 | 18 | @{ |
gkroussos | 0:e8fdba0ed044 | 19 | |
gkroussos | 0:e8fdba0ed044 | 20 | @brief General error code definitions for the BLE API. |
gkroussos | 0:e8fdba0ed044 | 21 | |
gkroussos | 0:e8fdba0ed044 | 22 | @ingroup BLE_COMMON |
gkroussos | 0:e8fdba0ed044 | 23 | */ |
gkroussos | 0:e8fdba0ed044 | 24 | #ifndef NRF_BLE_ERR_H__ |
gkroussos | 0:e8fdba0ed044 | 25 | #define NRF_BLE_ERR_H__ |
gkroussos | 0:e8fdba0ed044 | 26 | |
gkroussos | 0:e8fdba0ed044 | 27 | #include "nrf_error.h" |
gkroussos | 0:e8fdba0ed044 | 28 | |
gkroussos | 0:e8fdba0ed044 | 29 | /* @defgroup BLE_ERRORS Error Codes |
gkroussos | 0:e8fdba0ed044 | 30 | * @{ */ |
gkroussos | 0:e8fdba0ed044 | 31 | #define BLE_ERROR_INVALID_CONN_HANDLE (NRF_ERROR_STK_BASE_NUM+0x001) /**< Invalid connection handle. */ |
gkroussos | 0:e8fdba0ed044 | 32 | #define BLE_ERROR_INVALID_ATTR_HANDLE (NRF_ERROR_STK_BASE_NUM+0x002) /**< Invalid attribute handle. */ |
gkroussos | 0:e8fdba0ed044 | 33 | #define BLE_ERROR_NO_TX_BUFFERS (NRF_ERROR_STK_BASE_NUM+0x003) /**< Buffer capacity exceeded. */ |
gkroussos | 0:e8fdba0ed044 | 34 | /** @} */ |
gkroussos | 0:e8fdba0ed044 | 35 | |
gkroussos | 0:e8fdba0ed044 | 36 | |
gkroussos | 0:e8fdba0ed044 | 37 | /** @defgroup BLE_ERROR_SUBRANGES Module specific error code subranges |
gkroussos | 0:e8fdba0ed044 | 38 | * @brief Assignment of subranges for module specific error codes. |
gkroussos | 0:e8fdba0ed044 | 39 | * @note For specific error codes, see ble_<module>.h or ble_error_<module>.h. |
gkroussos | 0:e8fdba0ed044 | 40 | * @{ */ |
gkroussos | 0:e8fdba0ed044 | 41 | #define NRF_L2CAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x100) /**< L2CAP specific errors. */ |
gkroussos | 0:e8fdba0ed044 | 42 | #define NRF_GAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x200) /**< GAP specific errors. */ |
gkroussos | 0:e8fdba0ed044 | 43 | #define NRF_GATTC_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x300) /**< GATT client specific errors. */ |
gkroussos | 0:e8fdba0ed044 | 44 | #define NRF_GATTS_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x400) /**< GATT server specific errors. */ |
gkroussos | 0:e8fdba0ed044 | 45 | /** @} */ |
gkroussos | 0:e8fdba0ed044 | 46 | |
gkroussos | 0:e8fdba0ed044 | 47 | #endif |
gkroussos | 0:e8fdba0ed044 | 48 | |
gkroussos | 0:e8fdba0ed044 | 49 | |
gkroussos | 0:e8fdba0ed044 | 50 | /** |
gkroussos | 0:e8fdba0ed044 | 51 | @} |
gkroussos | 0:e8fdba0ed044 | 52 | @} |
gkroussos | 0:e8fdba0ed044 | 53 | */ |