
DocID026248 Rev 1
17/21
UM1753
STLUX library
21
3.10 STLUX385A
universal asynchronous receiver/transmitter
(stlux_uart)
Table 10. STLUX385A universal asynchronous receiver/transmitter
Header
Input parameters
Output
parameters
Functionality
UART_Reset
Sets the UART internal
registers to their
default initialization
values.
UART_Init
BaudRate specifies the baud rate. It
can be up to f_clk/16.
WordLength is the data wordlength, it
can be 8 or 9 bits.
StopBits specifies the stop bits
sequence to be used.
Parity specifies if even, odd or no
parity must be used.
PIN specifies the UART pin
configuration.
Mode specifies the Rx/Tx
configuration.
Initializes the AWU
peripheral according to
the specified
parameters.
UART_Cmd
NewState can be ENABLE or
DISABLE.
Enables or disables
the UART peripheral.
UART_ITConfig
UART_IT specifies the interrupt source
to be enabled.
NewState can be ENABLE or
DISABLE.
Enables or disables
the specific UART
interrupts.
UART_IsITEnabled
UART_IT specifies the interrupt source
to be checked.
Gets a positive
value if true,
zero otherwise.
Checks whether
a specific UART
interrupt source is
enabled.
UART_HalfDuplexCmd
NewState can be ENABLE or
DISABLE.
Enables or disables
the UART's half duplex
communication.
UART_LINBreakDetectionConfig
UART_LINBreakDetectionLength
specifies whether the LIN break
detection length is 10 or 11 bits.
Sets the UART line
break detection length.
UART_LINCmd
NewState can be ENABLE or
DISABLE.
Enables or disables
the UART's line break
detection.
UART_WakeUpConfig
UART_WakeUp specifies the UART
wake-up method to be used.
Selects the UART
wake-up method.
UART_ReceiverWakeUpCmd
NewState can be ENABLE or
DISABLE.
Determines if the
UART is in mute mode
or not.