mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API/include/nrf_error.h@277:0dffe5d9e928, 2014-08-08 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Aug 08 14:30:08 2014 +0100
- Revision:
- 277:0dffe5d9e928
Synchronized with git revision 6e585609af67e04984b0c09093a5790a751c6ceb
Full URL: https://github.com/mbedmicro/mbed/commit/6e585609af67e04984b0c09093a5790a751c6ceb/
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 277:0dffe5d9e928 | 1 | /* |
mbed_official | 277:0dffe5d9e928 | 2 | * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
mbed_official | 277:0dffe5d9e928 | 3 | * |
mbed_official | 277:0dffe5d9e928 | 4 | * The information contained herein is confidential property of Nordic Semiconductor. The use, |
mbed_official | 277:0dffe5d9e928 | 5 | * copying, transfer or disclosure of such information is prohibited except by express written |
mbed_official | 277:0dffe5d9e928 | 6 | * agreement with Nordic Semiconductor. |
mbed_official | 277:0dffe5d9e928 | 7 | * |
mbed_official | 277:0dffe5d9e928 | 8 | */ |
mbed_official | 277:0dffe5d9e928 | 9 | /** |
mbed_official | 277:0dffe5d9e928 | 10 | @defgroup nrf_error SoftDevice Global Error Codes |
mbed_official | 277:0dffe5d9e928 | 11 | @{ |
mbed_official | 277:0dffe5d9e928 | 12 | |
mbed_official | 277:0dffe5d9e928 | 13 | @brief Global Error definitions |
mbed_official | 277:0dffe5d9e928 | 14 | */ |
mbed_official | 277:0dffe5d9e928 | 15 | |
mbed_official | 277:0dffe5d9e928 | 16 | /* Header guard */ |
mbed_official | 277:0dffe5d9e928 | 17 | #ifndef NRF_ERROR_H__ |
mbed_official | 277:0dffe5d9e928 | 18 | #define NRF_ERROR_H__ |
mbed_official | 277:0dffe5d9e928 | 19 | |
mbed_official | 277:0dffe5d9e928 | 20 | /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions |
mbed_official | 277:0dffe5d9e928 | 21 | * @{ */ |
mbed_official | 277:0dffe5d9e928 | 22 | #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base |
mbed_official | 277:0dffe5d9e928 | 23 | #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base |
mbed_official | 277:0dffe5d9e928 | 24 | #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base |
mbed_official | 277:0dffe5d9e928 | 25 | #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base |
mbed_official | 277:0dffe5d9e928 | 26 | /** @} */ |
mbed_official | 277:0dffe5d9e928 | 27 | |
mbed_official | 277:0dffe5d9e928 | 28 | #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command |
mbed_official | 277:0dffe5d9e928 | 29 | #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing |
mbed_official | 277:0dffe5d9e928 | 30 | #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled |
mbed_official | 277:0dffe5d9e928 | 31 | #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error |
mbed_official | 277:0dffe5d9e928 | 32 | #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation |
mbed_official | 277:0dffe5d9e928 | 33 | #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found |
mbed_official | 277:0dffe5d9e928 | 34 | #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported |
mbed_official | 277:0dffe5d9e928 | 35 | #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter |
mbed_official | 277:0dffe5d9e928 | 36 | #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state |
mbed_official | 277:0dffe5d9e928 | 37 | #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length |
mbed_official | 277:0dffe5d9e928 | 38 | #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags |
mbed_official | 277:0dffe5d9e928 | 39 | #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data |
mbed_official | 277:0dffe5d9e928 | 40 | #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Data size exceeds limit |
mbed_official | 277:0dffe5d9e928 | 41 | #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out |
mbed_official | 277:0dffe5d9e928 | 42 | #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer |
mbed_official | 277:0dffe5d9e928 | 43 | #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation |
mbed_official | 277:0dffe5d9e928 | 44 | #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address |
mbed_official | 277:0dffe5d9e928 | 45 | #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy |
mbed_official | 277:0dffe5d9e928 | 46 | |
mbed_official | 277:0dffe5d9e928 | 47 | #endif // NRF_ERROR_H__ |
mbed_official | 277:0dffe5d9e928 | 48 | |
mbed_official | 277:0dffe5d9e928 | 49 | /** |
mbed_official | 277:0dffe5d9e928 | 50 | @} |
mbed_official | 277:0dffe5d9e928 | 51 | */ |