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
nrf_error.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 @defgroup nrf_error SoftDevice Global Error Codes 00011 @{ 00012 00013 @brief Global Error definitions 00014 */ 00015 00016 /* Header guard */ 00017 #ifndef NRF_ERROR_H__ 00018 #define NRF_ERROR_H__ 00019 00020 /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions 00021 * @{ */ 00022 #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base 00023 #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base 00024 #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base 00025 #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base 00026 /** @} */ 00027 00028 #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command 00029 #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing 00030 #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled 00031 #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error 00032 #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation 00033 #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found 00034 #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported 00035 #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter 00036 #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state 00037 #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length 00038 #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags 00039 #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data 00040 #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Data size exceeds limit 00041 #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out 00042 #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer 00043 #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation 00044 #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address 00045 #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy 00046 00047 #endif // NRF_ERROR_H__ 00048 00049 /** 00050 @} 00051 */
Generated on Tue Jul 12 2022 13:52:31 by
