Error Codes#

Macros#

#define

A successful return value.

#define
ECODE_EMDRV_UARTDRV_WAITING (ECODE_EMDRV_UARTDRV_BASE | 0x00000001)

An operation is waiting in queue.

#define
ECODE_EMDRV_UARTDRV_ILLEGAL_HANDLE (ECODE_EMDRV_UARTDRV_BASE | 0x00000002)

An illegal UART handle.

#define
ECODE_EMDRV_UARTDRV_PARAM_ERROR (ECODE_EMDRV_UARTDRV_BASE | 0x00000003)

An illegal input parameter.

#define
ECODE_EMDRV_UARTDRV_BUSY (ECODE_EMDRV_UARTDRV_BASE | 0x00000004)

The UART port is busy.

#define
ECODE_EMDRV_UARTDRV_ILLEGAL_OPERATION (ECODE_EMDRV_UARTDRV_BASE | 0x00000005)

An illegal operation on the UART port.

#define
ECODE_EMDRV_UARTDRV_IDLE (ECODE_EMDRV_UARTDRV_BASE | 0x00000008)

No UART transfer is in progress.

#define
ECODE_EMDRV_UARTDRV_ABORTED (ECODE_EMDRV_UARTDRV_BASE | 0x00000009)

A UART transfer has been aborted.

#define
ECODE_EMDRV_UARTDRV_QUEUE_FULL (ECODE_EMDRV_UARTDRV_BASE | 0x0000000A)

A UART operation queue is full.

#define
ECODE_EMDRV_UARTDRV_QUEUE_EMPTY (ECODE_EMDRV_UARTDRV_BASE | 0x0000000B)

A UART operation queue is empty.

#define
ECODE_EMDRV_UARTDRV_PARITY_ERROR (ECODE_EMDRV_UARTDRV_BASE | 0x0000000C)

A UART parity error frame. Data is ignored.

#define
ECODE_EMDRV_UARTDRV_FRAME_ERROR (ECODE_EMDRV_UARTDRV_BASE | 0x0000000D)

A UART frame error. Data is ignored.

#define
ECODE_EMDRV_UARTDRV_DMA_ALLOC_ERROR (ECODE_EMDRV_UARTDRV_BASE | 0x0000000E)

Unable to allocate DMA channels.

#define
ECODE_EMDRV_UARTDRV_CLOCK_ERROR (ECODE_EMDRV_UARTDRV_BASE | 0x0000000F)

Unable to set a desired baudrate.

Macro Definition Documentation#

ECODE_EMDRV_UARTDRV_OK#

#define ECODE_EMDRV_UARTDRV_OK
Value:
(ECODE_OK)

A successful return value.


Definition at line 79 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_WAITING#

#define ECODE_EMDRV_UARTDRV_WAITING
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000001)

An operation is waiting in queue.


Definition at line 80 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_ILLEGAL_HANDLE#

#define ECODE_EMDRV_UARTDRV_ILLEGAL_HANDLE
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000002)

An illegal UART handle.


Definition at line 81 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_PARAM_ERROR#

#define ECODE_EMDRV_UARTDRV_PARAM_ERROR
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000003)

An illegal input parameter.


Definition at line 82 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_BUSY#

#define ECODE_EMDRV_UARTDRV_BUSY
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000004)

The UART port is busy.


Definition at line 83 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_ILLEGAL_OPERATION#

#define ECODE_EMDRV_UARTDRV_ILLEGAL_OPERATION
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000005)

An illegal operation on the UART port.


Definition at line 84 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_IDLE#

#define ECODE_EMDRV_UARTDRV_IDLE
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000008)

No UART transfer is in progress.


Definition at line 85 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_ABORTED#

#define ECODE_EMDRV_UARTDRV_ABORTED
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000009)

A UART transfer has been aborted.


Definition at line 86 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_QUEUE_FULL#

#define ECODE_EMDRV_UARTDRV_QUEUE_FULL
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000A)

A UART operation queue is full.


Definition at line 87 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_QUEUE_EMPTY#

#define ECODE_EMDRV_UARTDRV_QUEUE_EMPTY
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000B)

A UART operation queue is empty.


Definition at line 88 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_PARITY_ERROR#

#define ECODE_EMDRV_UARTDRV_PARITY_ERROR
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000C)

A UART parity error frame. Data is ignored.


Definition at line 89 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_FRAME_ERROR#

#define ECODE_EMDRV_UARTDRV_FRAME_ERROR
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000D)

A UART frame error. Data is ignored.


Definition at line 90 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_DMA_ALLOC_ERROR#

#define ECODE_EMDRV_UARTDRV_DMA_ALLOC_ERROR
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000E)

Unable to allocate DMA channels.


Definition at line 91 of file platform/emdrv/uartdrv/inc/uartdrv.h

ECODE_EMDRV_UARTDRV_CLOCK_ERROR#

#define ECODE_EMDRV_UARTDRV_CLOCK_ERROR
Value:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000F)

Unable to set a desired baudrate.


Definition at line 92 of file platform/emdrv/uartdrv/inc/uartdrv.h