ECODE - Error Codes#

ECODE is set of error and status codes related to DMA, RTC, SPI, NVM, USTIMER, UARTDRV, EZRADIO, TEMP, and NVM3 drivers. These error and status codes are used by the above listed drivers to update the layer (using the driver) about an error or status.

Typedefs#

typedef uint32_t

Typedef for API function error code return values.

Macros#

#define
ECODE_EMDRV_BASE (0xF0000000U)

Base value for all EMDRV errorcodes.

#define

Generic success return value.

#define
ECODE_EMDRV_SPIDRV_BASE (ECODE_EMDRV_BASE | 0x00002000U)

Base value for SPIDRV error codes.

#define
ECODE_EMDRV_NVM_BASE (ECODE_EMDRV_BASE | 0x00003000U)

Base value for NVM error codes.

#define
ECODE_EMDRV_USTIMER_BASE (ECODE_EMDRV_BASE | 0x00004000U)

Base value for USTIMER error codes.

#define
ECODE_EMDRV_UARTDRV_BASE (ECODE_EMDRV_BASE | 0x00007000U)

Base value for UARTDRV error codes.

#define
ECODE_EMDRV_DMADRV_BASE (ECODE_EMDRV_BASE | 0x00008000U)

Base value for DMADRV error codes.

#define
ECODE_EMDRV_EZRADIODRV_BASE (ECODE_EMDRV_BASE | 0x00009000U)

Base value for EZRADIODRV error codes.

#define
ECODE_EMDRV_TEMPDRV_BASE (ECODE_EMDRV_BASE | 0x0000D000U)

Base value for TEMPDRV error codes.

#define
ECODE_EMDRV_NVM3_BASE (ECODE_EMDRV_BASE | 0x0000E000U)

Base value for NVM3 error codes.

Typedef Documentation#

Ecode_t#

typedef uint32_t Ecode_t

Typedef for API function error code return values.

Bit 24-31: Component, for example emdrv
Bit 16-23: Module, for example UARTDRV - UART Driver or SPIDRV - SPI Driver
Bit 0-15: Error code


Definition at line 53 of file platform/emdrv/common/inc/ecode.h

Macro Definition Documentation#

ECODE_EMDRV_BASE#

#define ECODE_EMDRV_BASE
Value:
(0xF0000000U)

Base value for all EMDRV errorcodes.


Definition at line 55 of file platform/emdrv/common/inc/ecode.h

ECODE_OK#

#define ECODE_OK
Value:
(0U)

Generic success return value.


Definition at line 57 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_SPIDRV_BASE#

#define ECODE_EMDRV_SPIDRV_BASE
Value:
(ECODE_EMDRV_BASE | 0x00002000U)

Base value for SPIDRV error codes.


Definition at line 59 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_NVM_BASE#

#define ECODE_EMDRV_NVM_BASE
Value:
(ECODE_EMDRV_BASE | 0x00003000U)

Base value for NVM error codes.


Definition at line 60 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_USTIMER_BASE#

#define ECODE_EMDRV_USTIMER_BASE
Value:
(ECODE_EMDRV_BASE | 0x00004000U)

Base value for USTIMER error codes.


Definition at line 61 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_UARTDRV_BASE#

#define ECODE_EMDRV_UARTDRV_BASE
Value:
(ECODE_EMDRV_BASE | 0x00007000U)

Base value for UARTDRV error codes.


Definition at line 62 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_DMADRV_BASE#

#define ECODE_EMDRV_DMADRV_BASE
Value:
(ECODE_EMDRV_BASE | 0x00008000U)

Base value for DMADRV error codes.


Definition at line 63 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_EZRADIODRV_BASE#

#define ECODE_EMDRV_EZRADIODRV_BASE
Value:
(ECODE_EMDRV_BASE | 0x00009000U)

Base value for EZRADIODRV error codes.


Definition at line 64 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_TEMPDRV_BASE#

#define ECODE_EMDRV_TEMPDRV_BASE
Value:
(ECODE_EMDRV_BASE | 0x0000D000U)

Base value for TEMPDRV error codes.


Definition at line 65 of file platform/emdrv/common/inc/ecode.h

ECODE_EMDRV_NVM3_BASE#

#define ECODE_EMDRV_NVM3_BASE
Value:
(ECODE_EMDRV_BASE | 0x0000E000U)

Base value for NVM3 error codes.


Definition at line 66 of file platform/emdrv/common/inc/ecode.h