Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_WallbotBLE_Challenge by
ble_err.h
00001 /* 00002 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. 00003 * 00004 * The information contained herein is confidential property of Nordic Semiconductor. The use, 00005 * copying, transfer or disclosure of such information is prohibited except by express written 00006 * agreement with Nordic Semiconductor. 00007 * 00008 */ 00009 /** 00010 @addtogroup BLE_COMMON 00011 @{ 00012 @addtogroup nrf_error 00013 @{ 00014 @ingroup BLE_COMMON 00015 @} 00016 00017 @defgroup ble_err General error codes 00018 @{ 00019 00020 @brief General error code definitions for the BLE API. 00021 00022 @ingroup BLE_COMMON 00023 */ 00024 #ifndef NRF_BLE_ERR_H__ 00025 #define NRF_BLE_ERR_H__ 00026 00027 #include "nrf_error.h" 00028 00029 /* @defgroup BLE_ERRORS Error Codes 00030 * @{ */ 00031 #define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /**< @ref sd_ble_enable has not been called. */ 00032 #define BLE_ERROR_INVALID_CONN_HANDLE (NRF_ERROR_STK_BASE_NUM+0x002) /**< Invalid connection handle. */ 00033 #define BLE_ERROR_INVALID_ATTR_HANDLE (NRF_ERROR_STK_BASE_NUM+0x003) /**< Invalid attribute handle. */ 00034 #define BLE_ERROR_NO_TX_BUFFERS (NRF_ERROR_STK_BASE_NUM+0x004) /**< Buffer capacity exceeded. */ 00035 /** @} */ 00036 00037 00038 /** @defgroup BLE_ERROR_SUBRANGES Module specific error code subranges 00039 * @brief Assignment of subranges for module specific error codes. 00040 * @note For specific error codes, see ble_<module>.h or ble_error_<module>.h. 00041 * @{ */ 00042 #define NRF_L2CAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x100) /**< L2CAP specific errors. */ 00043 #define NRF_GAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x200) /**< GAP specific errors. */ 00044 #define NRF_GATTC_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x300) /**< GATT client specific errors. */ 00045 #define NRF_GATTS_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x400) /**< GATT server specific errors. */ 00046 /** @} */ 00047 00048 #endif 00049 00050 00051 /** 00052 @} 00053 @} 00054 */
Generated on Tue Jul 12 2022 13:52:30 by
