1.1.13.14 1.8.24.19 1.10.23.21 1.11.23.21 1.12.24.21 1.13.22.21 1.14.17.21 1.15.18.21 1.16.25.21 1.17.20.21 1.18.21.21 1.19.21.21 1.20.25.21 1.21.26.21 1.22.28.21 1.23.27.21 1.24.23.21 1.27.26.19 1.34.26.19 1.35.20.19 UARTx_ReadByte Function
C
/* x = UART instance number */
/* Blocking mode */
int UARTx_ReadByte( void )
Summary
Submits request to read a byte of data to the given UART peripheral
Description
This function submits request to read a byte of data to the given UART peripheral. This Function is available only in blocking mode. Application must call the UARTx_ReceiverIsReady API to check if a byte is available with the receiver before calling this API.
Precondition
-
UARTx_Initialize must have been called for the associated UART instance.
-
Receiver readiness must be confirmed using UARTx_ReceiverIsReady.
Parameters
None
Returns
Read byte.
Example
char rxData; if(UART1_ReceiverIsReady() == true) { rxData = UART1_ReadByte(); }
Remarks
None