Retrieve one character from the FIFO queue.
void cbToCoNet_vMain(void) { while (!SERIAL_bRxQueueEmpty(sSerPort.u8SerialPort)) { int16 i16Char; i16Char = SERIAL_i16RxChar(sSerPort.u8SerialPort); vfPrintf(&sSerStream, "\n\r# [%c] --> ", i16Char); SERIAL_vFlush(sSerStream.u8Device); ... } }
最終更新 3 年前
Type
Name
Remark
uint8
u8SerialPort
Serial port (E_AHI_UART_0 or E_AHI_UART_1 should be specified)
Typr
int16
A value of 0x00-0xFF indicates that a byte has been correctly retrieved, otherwise an error occurs.