mbed library sources

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Tue Mar 18 12:30:07 2014 +0000
Revision:
123:8a356fb1000a
Parent:
targets/hal/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_6.0.0/s110_nrf51822_6.0.0_API/include/nrf_error.h@104:a6a92e2e5a92
Synchronized with git revision 3e40310534d854400e01b2e9612ef7edf44a2dc9

Full URL: https://github.com/mbedmicro/mbed/commit/3e40310534d854400e01b2e9612ef7edf44a2dc9/

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 104:a6a92e2e5a92 1 /*
mbed_official 104:a6a92e2e5a92 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
mbed_official 104:a6a92e2e5a92 3 *
mbed_official 104:a6a92e2e5a92 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
mbed_official 104:a6a92e2e5a92 5 * copying, transfer or disclosure of such information is prohibited except by express written
mbed_official 104:a6a92e2e5a92 6 * agreement with Nordic Semiconductor.
mbed_official 104:a6a92e2e5a92 7 *
mbed_official 104:a6a92e2e5a92 8 */
mbed_official 104:a6a92e2e5a92 9 /**
mbed_official 104:a6a92e2e5a92 10 @defgroup nrf_error SoftDevice Global Error Codes
mbed_official 104:a6a92e2e5a92 11 @{
mbed_official 104:a6a92e2e5a92 12
mbed_official 104:a6a92e2e5a92 13 @brief Global Error definitions
mbed_official 104:a6a92e2e5a92 14 */
mbed_official 104:a6a92e2e5a92 15
mbed_official 104:a6a92e2e5a92 16 /* Header guard */
mbed_official 104:a6a92e2e5a92 17 #ifndef NRF_ERROR_H__
mbed_official 104:a6a92e2e5a92 18 #define NRF_ERROR_H__
mbed_official 104:a6a92e2e5a92 19
mbed_official 104:a6a92e2e5a92 20 /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions
mbed_official 104:a6a92e2e5a92 21 * @{ */
mbed_official 104:a6a92e2e5a92 22 #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base
mbed_official 104:a6a92e2e5a92 23 #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base
mbed_official 104:a6a92e2e5a92 24 #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base
mbed_official 104:a6a92e2e5a92 25 #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base
mbed_official 104:a6a92e2e5a92 26 /** @} */
mbed_official 104:a6a92e2e5a92 27
mbed_official 104:a6a92e2e5a92 28 #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command
mbed_official 104:a6a92e2e5a92 29 #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing
mbed_official 104:a6a92e2e5a92 30 #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled
mbed_official 104:a6a92e2e5a92 31 #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error
mbed_official 104:a6a92e2e5a92 32 #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation
mbed_official 104:a6a92e2e5a92 33 #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found
mbed_official 104:a6a92e2e5a92 34 #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported
mbed_official 104:a6a92e2e5a92 35 #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter
mbed_official 104:a6a92e2e5a92 36 #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state
mbed_official 104:a6a92e2e5a92 37 #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length
mbed_official 104:a6a92e2e5a92 38 #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags
mbed_official 104:a6a92e2e5a92 39 #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data
mbed_official 104:a6a92e2e5a92 40 #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Data size exceeds limit
mbed_official 104:a6a92e2e5a92 41 #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out
mbed_official 104:a6a92e2e5a92 42 #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer
mbed_official 104:a6a92e2e5a92 43 #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation
mbed_official 104:a6a92e2e5a92 44 #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address
mbed_official 104:a6a92e2e5a92 45 #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy
mbed_official 104:a6a92e2e5a92 46
mbed_official 104:a6a92e2e5a92 47 #endif // NRF_ERROR_H__
mbed_official 104:a6a92e2e5a92 48
mbed_official 104:a6a92e2e5a92 49 /**
mbed_official 104:a6a92e2e5a92 50 @}
mbed_official 104:a6a92e2e5a92 51 */