Error Codes#
Macros#
A successful return value.
An operation is waiting in queue.
An illegal UART handle.
An illegal input parameter.
The UART port is busy.
An illegal operation on the UART port.
No UART transfer is in progress.
A UART transfer has been aborted.
A UART operation queue is full.
A UART operation queue is empty.
A UART parity error frame. Data is ignored.
A UART frame error. Data is ignored.
Unable to allocate DMA channels.
Unable to set a desired baudrate.
Macro Definition Documentation#
ECODE_EMDRV_UARTDRV_OK#
#define ECODE_EMDRV_UARTDRV_OKValue:
(ECODE_OK)
A successful return value.
85
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_WAITING#
#define ECODE_EMDRV_UARTDRV_WAITINGValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000001)
An operation is waiting in queue.
86
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_ILLEGAL_HANDLE#
#define ECODE_EMDRV_UARTDRV_ILLEGAL_HANDLEValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000002)
An illegal UART handle.
87
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_PARAM_ERROR#
#define ECODE_EMDRV_UARTDRV_PARAM_ERRORValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000003)
An illegal input parameter.
88
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_BUSY#
#define ECODE_EMDRV_UARTDRV_BUSYValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000004)
The UART port is busy.
89
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_ILLEGAL_OPERATION#
#define ECODE_EMDRV_UARTDRV_ILLEGAL_OPERATIONValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000005)
An illegal operation on the UART port.
90
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_IDLE#
#define ECODE_EMDRV_UARTDRV_IDLEValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000008)
No UART transfer is in progress.
91
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_ABORTED#
#define ECODE_EMDRV_UARTDRV_ABORTEDValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x00000009)
A UART transfer has been aborted.
92
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_QUEUE_FULL#
#define ECODE_EMDRV_UARTDRV_QUEUE_FULLValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000A)
A UART operation queue is full.
93
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_QUEUE_EMPTY#
#define ECODE_EMDRV_UARTDRV_QUEUE_EMPTYValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000B)
A UART operation queue is empty.
94
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_PARITY_ERROR#
#define ECODE_EMDRV_UARTDRV_PARITY_ERRORValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000C)
A UART parity error frame. Data is ignored.
95
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_FRAME_ERROR#
#define ECODE_EMDRV_UARTDRV_FRAME_ERRORValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000D)
A UART frame error. Data is ignored.
96
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_DMA_ALLOC_ERROR#
#define ECODE_EMDRV_UARTDRV_DMA_ALLOC_ERRORValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000E)
Unable to allocate DMA channels.
97
of file platform/emdrv/uartdrv/inc/uartdrv.h
ECODE_EMDRV_UARTDRV_CLOCK_ERROR#
#define ECODE_EMDRV_UARTDRV_CLOCK_ERRORValue:
(ECODE_EMDRV_UARTDRV_BASE | 0x0000000F)
Unable to set a desired baudrate.
98
of file platform/emdrv/uartdrv/inc/uartdrv.h