project for nrf51822 qfab
Dependencies: eddystone_URL mbed
Fork of eddystone_URL by
nRF51822/nordic/nrf-sdk/s110/ble_err.h@5:267bdacf5508, 2017-11-23 (annotated)
- Committer:
- tridung141196
- Date:
- Thu Nov 23 15:38:48 2017 +0000
- Revision:
- 5:267bdacf5508
- Parent:
- 0:76dfa9657d9d
ibeacon
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:76dfa9657d9d | 1 | /* |
jksoft | 0:76dfa9657d9d | 2 | * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
jksoft | 0:76dfa9657d9d | 3 | * |
jksoft | 0:76dfa9657d9d | 4 | * The information contained herein is confidential property of Nordic Semiconductor. The use, |
jksoft | 0:76dfa9657d9d | 5 | * copying, transfer or disclosure of such information is prohibited except by express written |
jksoft | 0:76dfa9657d9d | 6 | * agreement with Nordic Semiconductor. |
jksoft | 0:76dfa9657d9d | 7 | * |
jksoft | 0:76dfa9657d9d | 8 | */ |
jksoft | 0:76dfa9657d9d | 9 | /** |
jksoft | 0:76dfa9657d9d | 10 | @addtogroup BLE_COMMON |
jksoft | 0:76dfa9657d9d | 11 | @{ |
jksoft | 0:76dfa9657d9d | 12 | @addtogroup nrf_error |
jksoft | 0:76dfa9657d9d | 13 | @{ |
jksoft | 0:76dfa9657d9d | 14 | @ingroup BLE_COMMON |
jksoft | 0:76dfa9657d9d | 15 | @} |
jksoft | 0:76dfa9657d9d | 16 | |
jksoft | 0:76dfa9657d9d | 17 | @defgroup ble_err General error codes |
jksoft | 0:76dfa9657d9d | 18 | @{ |
jksoft | 0:76dfa9657d9d | 19 | |
jksoft | 0:76dfa9657d9d | 20 | @brief General error code definitions for the BLE API. |
jksoft | 0:76dfa9657d9d | 21 | |
jksoft | 0:76dfa9657d9d | 22 | @ingroup BLE_COMMON |
jksoft | 0:76dfa9657d9d | 23 | */ |
jksoft | 0:76dfa9657d9d | 24 | #ifndef NRF_BLE_ERR_H__ |
jksoft | 0:76dfa9657d9d | 25 | #define NRF_BLE_ERR_H__ |
jksoft | 0:76dfa9657d9d | 26 | |
jksoft | 0:76dfa9657d9d | 27 | #include "nrf_error.h" |
jksoft | 0:76dfa9657d9d | 28 | |
jksoft | 0:76dfa9657d9d | 29 | /* @defgroup BLE_ERRORS Error Codes |
jksoft | 0:76dfa9657d9d | 30 | * @{ */ |
jksoft | 0:76dfa9657d9d | 31 | #define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /**< @ref sd_ble_enable has not been called. */ |
jksoft | 0:76dfa9657d9d | 32 | #define BLE_ERROR_INVALID_CONN_HANDLE (NRF_ERROR_STK_BASE_NUM+0x002) /**< Invalid connection handle. */ |
jksoft | 0:76dfa9657d9d | 33 | #define BLE_ERROR_INVALID_ATTR_HANDLE (NRF_ERROR_STK_BASE_NUM+0x003) /**< Invalid attribute handle. */ |
jksoft | 0:76dfa9657d9d | 34 | #define BLE_ERROR_NO_TX_BUFFERS (NRF_ERROR_STK_BASE_NUM+0x004) /**< Buffer capacity exceeded. */ |
jksoft | 0:76dfa9657d9d | 35 | /** @} */ |
jksoft | 0:76dfa9657d9d | 36 | |
jksoft | 0:76dfa9657d9d | 37 | |
jksoft | 0:76dfa9657d9d | 38 | /** @defgroup BLE_ERROR_SUBRANGES Module specific error code subranges |
jksoft | 0:76dfa9657d9d | 39 | * @brief Assignment of subranges for module specific error codes. |
jksoft | 0:76dfa9657d9d | 40 | * @note For specific error codes, see ble_<module>.h or ble_error_<module>.h. |
jksoft | 0:76dfa9657d9d | 41 | * @{ */ |
jksoft | 0:76dfa9657d9d | 42 | #define NRF_L2CAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x100) /**< L2CAP specific errors. */ |
jksoft | 0:76dfa9657d9d | 43 | #define NRF_GAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x200) /**< GAP specific errors. */ |
jksoft | 0:76dfa9657d9d | 44 | #define NRF_GATTC_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x300) /**< GATT client specific errors. */ |
jksoft | 0:76dfa9657d9d | 45 | #define NRF_GATTS_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x400) /**< GATT server specific errors. */ |
jksoft | 0:76dfa9657d9d | 46 | /** @} */ |
jksoft | 0:76dfa9657d9d | 47 | |
jksoft | 0:76dfa9657d9d | 48 | #endif |
jksoft | 0:76dfa9657d9d | 49 | |
jksoft | 0:76dfa9657d9d | 50 | |
jksoft | 0:76dfa9657d9d | 51 | /** |
jksoft | 0:76dfa9657d9d | 52 | @} |
jksoft | 0:76dfa9657d9d | 53 | @} |
jksoft | 0:76dfa9657d9d | 54 | */ |