1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef SOFTDEVICE_PRESENT
- #ifndef NRF_ERROR_H__
- #define NRF_ERROR_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define NRF_ERROR_BASE_NUM (0x0)
- #define NRF_ERROR_SDM_BASE_NUM (0x1000)
- #define NRF_ERROR_SOC_BASE_NUM (0x2000)
- #define NRF_ERROR_STK_BASE_NUM (0x3000)
- #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0)
- #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1)
- #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2)
- #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3)
- #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4)
- #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5)
- #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6)
- #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7)
- #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8)
- #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9)
- #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10)
- #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11)
- #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12)
- #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13)
- #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14)
- #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15)
- #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16)
- #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17)
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|