The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
emilmont
Date:
Fri Feb 21 12:21:39 2014 +0000
Revision:
80:8e73be2a2ac1
First alpha release for the NRF51822 target (to be tested in the online IDE)

Who changed what in which revision?

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