169 reg =
USART_RTOR(usart) & ~USART_RTOR_RTO_MASK;
#define USART_CR1_RTOIE
RTOIE: Receiver timeout interrupt enable.
#define USART_CR2_DATAINV
DATAINV: Binary data inversion.
#define USART_CR2_RTOEN
RTOEN: Receiver timeout enable.
#define USART_CR2_TXINV
TXINV: TX pin active level inversion.
#define USART_CR2_RXINV
RXINV: RX pin active level inversion.
#define USART_CR3_HDSEL
HDSEL: Half-duplex selection.
#define USART_RDR_MASK
RDR[8:0]: Receive data value.
#define USART_TDR_MASK
TDR[8:0]: Transmit data value.
uint16_t usart_recv(uint32_t usart)
USART Read a Received Data Word.
void usart_enable_data_inversion(uint32_t usart)
USART enable data inversion.
void usart_disable_halfduplex(uint32_t usart)
USART Disable Half-duplex.
void usart_enable_rx_timeout(uint32_t usart)
USART enable receive timeout function.
void usart_send(uint32_t usart, uint16_t data)
USART Send a Data Word.
void usart_wait_recv_ready(uint32_t usart)
USART Wait for Received Data Available.
void usart_set_rx_timeout_value(uint32_t usart, uint32_t value)
USART Set receiver timeout value.
void usart_enable_halfduplex(uint32_t usart)
USART Enable Half-duplex.
void usart_wait_send_ready(uint32_t usart)
USART Wait for Transmit Data Buffer Empty.
void usart_disable_rx_timeout_interrupt(uint32_t usart)
USART disable receive timeout interrupt.
void usart_disable_tx_inversion(uint32_t usart)
USART Disable TX pin active level inversion.
void usart_disable_rx_timeout(uint32_t usart)
USART disable receive timeout function.
void usart_disable_rx_inversion(uint32_t usart)
USART Disable RX pin active level inversion.
void usart_enable_rx_timeout_interrupt(uint32_t usart)
USART enable receive timeout interrupt.
void usart_enable_rx_inversion(uint32_t usart)
USART Enable RX pin active level inversion.
void usart_disable_data_inversion(uint32_t usart)
USART disable data inversion.
void usart_enable_tx_inversion(uint32_t usart)
USART Enable TX pin active level inversion.
bool usart_get_flag(uint32_t usart, uint32_t flag)
USART Read a Status Flag.
#define USART_ISR_RXNE
RXNE: Read data register not empty.
#define USART_ISR_TXE
TXE: Transmit data register empty.
#define USART_CR3(usart_base)
Control register 3 (USARTx_CR3)
#define USART_CR1(usart_base)
Control register 1 (USARTx_CR1)
#define USART_TDR(usart_base)
Transmit data register (USART_TDR)
#define USART_RTOR(usart_base)
Receiver timeout register (USART_RTOR)
#define USART_RDR(usart_base)
Receive data register (USART_RDR)
#define USART_ISR(usart_base)
Interrupt & status register (USART_ISR)
#define USART_CR2(usart_base)
Control register 2 (USARTx_CR2)
#define USART_RTOR_RTO_MASK
#define USART_RTOR_RTO_VAL(x)