Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

UartRead()

Read data from the specified UART channel.

Syntax

UartRead(unsigned char channel, unsigned char numBytes, unsigned char* recBuffer, unsigned char* numBytesRead) ;

channel
The UART channel to read from.

numBytes
The number of data bytes to read from the UART's receive buffer (if they exist)

recBuffer
A pointer to the first element in an unsigned byte array to store the data bytes from the UART.

numBytesRead
The actual number of bytes read. If numBytesRead is less than numBytes a warning status is returned.

Returns

int status

Related Links

Clone this wiki locally