Birkbeck College Mobile and Ubiquitous Computing IoT Lab Exercise 2

Dependencies:   BLE_API_Native_blog

Committer:
gkroussos
Date:
Sat Mar 07 16:34:53 2015 +0000
Revision:
0:e8fdba0ed044
MUC IoT Workshop v1.0

Who changed what in which revision?

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