|
enum | UartBitsNum4Char {
FIVE_BITS = 0x0,
SIX_BITS = 0x1,
SEVEN_BITS = 0x2,
EIGHT_BITS = 0x3,
FIVE_BITS = 0x0,
SIX_BITS = 0x1,
SEVEN_BITS = 0x2,
EIGHT_BITS = 0x3
} |
|
enum | UartStopBitsNum {
ONE_STOP_BIT = 0x1,
ONE_HALF_STOP_BIT = 0x2,
TWO_STOP_BIT = 0x3,
ONE_STOP_BIT = 0x1,
ONE_HALF_STOP_BIT = 0x2,
TWO_STOP_BIT = 0x3
} |
|
enum | UartParityMode {
NONE_BITS = 0x2,
ODD_BITS = 1,
EVEN_BITS = 0,
NONE_BITS = 0x2,
ODD_BITS = 1,
EVEN_BITS = 0
} |
|
enum | UartExistParity { STICK_PARITY_DIS = 0,
STICK_PARITY_EN = 1,
STICK_PARITY_DIS = 0,
STICK_PARITY_EN = 1
} |
|
enum | UART_LineLevelInverse {
UART_None_Inverse = 0x0,
UART_Rxd_Inverse = UART_RXD_INV,
UART_CTS_Inverse = UART_CTS_INV,
UART_Txd_Inverse = UART_TXD_INV,
UART_RTS_Inverse = UART_RTS_INV,
UART_None_Inverse = 0x0,
UART_Rxd_Inverse = UART_RXD_INV,
UART_CTS_Inverse = UART_CTS_INV,
UART_Txd_Inverse = UART_TXD_INV,
UART_RTS_Inverse = UART_RTS_INV
} |
|
enum | UartBautRate {
BIT_RATE_300 = 300,
BIT_RATE_600 = 600,
BIT_RATE_1200 = 1200,
BIT_RATE_2400 = 2400,
BIT_RATE_4800 = 4800,
BIT_RATE_9600 = 9600,
BIT_RATE_19200 = 19200,
BIT_RATE_38400 = 38400,
BIT_RATE_57600 = 57600,
BIT_RATE_74880 = 74880,
BIT_RATE_115200 = 115200,
BIT_RATE_230400 = 230400,
BIT_RATE_460800 = 460800,
BIT_RATE_921600 = 921600,
BIT_RATE_1843200 = 1843200,
BIT_RATE_3686400 = 3686400,
BIT_RATE_300 = 300,
BIT_RATE_600 = 600,
BIT_RATE_1200 = 1200,
BIT_RATE_2400 = 2400,
BIT_RATE_4800 = 4800,
BIT_RATE_9600 = 9600,
BIT_RATE_19200 = 19200,
BIT_RATE_38400 = 38400,
BIT_RATE_57600 = 57600,
BIT_RATE_74880 = 74880,
BIT_RATE_115200 = 115200,
BIT_RATE_230400 = 230400,
BIT_RATE_460800 = 460800,
BIT_RATE_921600 = 921600,
BIT_RATE_1843200 = 1843200,
BIT_RATE_3686400 = 3686400
} |
|
enum | UartFlowCtrl {
NONE_CTRL,
HARDWARE_CTRL,
XON_XOFF_CTRL,
NONE_CTRL,
HARDWARE_CTRL,
XON_XOFF_CTRL
} |
|
enum | UART_HwFlowCtrl {
USART_HardwareFlowControl_None = 0x0,
USART_HardwareFlowControl_RTS = 0x1,
USART_HardwareFlowControl_CTS = 0x2,
USART_HardwareFlowControl_CTS_RTS = 0x3,
USART_HardwareFlowControl_None = 0x0,
USART_HardwareFlowControl_RTS = 0x1,
USART_HardwareFlowControl_CTS = 0x2,
USART_HardwareFlowControl_CTS_RTS = 0x3
} |
|
enum | RcvMsgBuffState {
EMPTY,
UNDER_WRITE,
WRITE_OVER,
EMPTY,
UNDER_WRITE,
WRITE_OVER
} |
|
enum | RcvMsgState {
BAUD_RATE_DET,
WAIT_SYNC_FRM,
SRCH_MSG_HEAD,
RCV_MSG_BODY,
RCV_ESC_CHAR,
BAUD_RATE_DET,
WAIT_SYNC_FRM,
SRCH_MSG_HEAD,
RCV_MSG_BODY,
RCV_ESC_CHAR
} |
|
enum | TCPState { RUN = 0,
BLOCK = 1,
RUN = 0,
BLOCK = 1
} |
|
|
void | uart_init (UartBautRate uart0_br, UartBautRate uart1_br) |
|
void | uart0_sendStr (const char *str) |
|
STATUS | uart_tx_one_char (uint8 uart, uint8 TxChar) |
|
STATUS | uart_tx_one_char_no_wait (uint8 uart, uint8 TxChar) |
|
void | uart1_sendStr_no_wait (const char *str) |
|
struct UartBuffer * | Uart_Buf_Init () |
|
LOCAL void | Uart_Buf_Cpy (struct UartBuffer *pCur, char *pdata, uint16 data_len) |
|
void | uart_buf_free (struct UartBuffer *pBuff) |
|
void | tx_buff_enq (char *pdata, uint16 data_len) |
|
LOCAL void | tx_fifo_insert (struct UartBuffer *pTxBuff, uint8 data_len, uint8 uart_no) |
|
void | tx_start_uart_buffer (uint8 uart_no) |
|
uint16 | rx_buff_deq (char *pdata, uint16 data_len) |
|
void | Uart_rx_buff_enq () |
|
void | uart_rx_intr_enable (uint8 uart_no) |
|
void | uart_rx_intr_disable (uint8 uart_no) |
|
void | uart0_tx_buffer (uint8 *buf, uint16 len) |
|
void | uart1_tx_buffer (uint8 *buf, uint16 len) |
|
void | UART_SetWordLength (uint8 uart_no, UartBitsNum4Char len) |
|
void | UART_SetStopBits (uint8 uart_no, UartStopBitsNum bit_num) |
|
void | UART_SetLineInverse (uint8 uart_no, UART_LineLevelInverse inverse_mask) |
|
void | UART_SetParity (uint8 uart_no, UartParityMode Parity_mode) |
|
void | UART_SetBaudrate (uint8 uart_no, uint32 baud_rate) |
|
void | UART_SetFlowCtrl (uint8 uart_no, UART_HwFlowCtrl flow_ctrl, uint8 rx_thresh) |
|
void | UART_WaitTxFifoEmpty (uint8 uart_no, uint32 time_out_us) |
|
void | UART_ResetFifo (uint8 uart_no) |
|
void | UART_ClearIntrStatus (uint8 uart_no, uint32 clr_mask) |
|
void | UART_SetIntrEna (uint8 uart_no, uint32 ena_mask) |
|
void | UART_SetPrintPort (uint8 uart_no) |
|
bool | UART_CheckOutputFinished (uint8 uart_no, uint32 time_out_us) |
|