UartGetBytesAvailable()

Gets the number of data bytes available in the specified UART's receive buffer.

Syntax


UartGetBytesAvailable(unsigned char channel, unsigned char *numBytes) ;

channel
The UART channel to read from.

numBytes
A pointer to an unsigned char to store the number of available data bytes in the UART's receive buffer.

Returns


int status