STLUX library
Table 10. STLUX385A universal asynchronous receiver/transmitter (continued)
Header
UART_ReceiveData8
UART_ReceiveData9
UART_SendData8
UART_SendData9
UART_SendBreak
UART_SetAddress
UART_SetPrescaler
UART_GetFlagStatus
UART_ClearFlag
18/21
Input parameters
Data is the 8-bit data to be transmitted.
Data is the 9-bit data to be transmitted.
UART_Address specifies the address
for the UART node.
Prescaler can be a value ranging from
0 to 128.
UART_FLAG specifies the UART
status flag to be checked. It can be:
Transmit data register empty flag
Transmission complete flag
Read data register not empty flag
Idle line detected flag
Overrun error flag
Noise error flag
Framing error flag
Parity error flag
Line break detection flag
Send break characters flag
UART_FLAG specifies the UART
status flag to be cleared.
DocID026248 Rev 1
Output
Functionality
parameters
The returned
Returns the most
value is the
recent received data
most recent
by the UART
8-bit data.
peripheral.
The returned
Returns the most
value is the
recent received data
most recent
by the UART
9-bit data.
peripheral.
Transmits 8-bit data
through the UART
peripheral.
Transmits 9-bit data
through the UART
peripheral.
Transmits break
characters.
Sets the address of the
UART node.
Sets the system clock
UART prescaler.
Returns the
Checks whether the
current status
specified UART flag is
for the
set or not.
specified flag.
Clears the specified
UART flag.
UM1753
Need help?
Do you have a question about the STLUX385A and is the answer not in the manual?