UARTDRV_InitUart_t Struct Reference

A UART driver instance initialization structure.

#include <uartdrv.h>

Data Fields

USART_TypeDef * port
The peripheral used for UART.
uint32_t baudRate
UART baud rate.
USART_Stopbits_TypeDef stopBits
A number of stop bits.
USART_Parity_TypeDef parity
Parity configuration.
USART_OVS_TypeDef oversampling
Oversampling mode.
UARTDRV_FlowControlType_t fcType
Flow control mode.
GPIO_Port_TypeDef ctsPort
A CTS pin port number.
uint8_t ctsPin
A CTS pin number.
GPIO_Port_TypeDef rtsPort
An RTS pin port number.
uint8_t rtsPin
An RTS pin number.
UARTDRV_Buffer_FifoQueue_t * rxQueue
A receive operation queue.
UARTDRV_Buffer_FifoQueue_t * txQueue
T transmit operation queue.

A UART driver instance initialization structure.

Contains a number of UARTDRV configuration options. It is required for driver instance initialization. This structure is passed to UARTDRV_Init() when initializing a UARTDRV instance.

Field Documentation

port

USART_TypeDef* UARTDRV_InitUart_t::port

The peripheral used for UART.

baudRate

uint32_t UARTDRV_InitUart_t::baudRate

UART baud rate.

stopBits

USART_Stopbits_TypeDef UARTDRV_InitUart_t::stopBits

A number of stop bits.

parity

USART_Parity_TypeDef UARTDRV_InitUart_t::parity

Parity configuration.

oversampling

USART_OVS_TypeDef UARTDRV_InitUart_t::oversampling

Oversampling mode.

fcType

UARTDRV_FlowControlType_t UARTDRV_InitUart_t::fcType

Flow control mode.

ctsPort

GPIO_Port_TypeDef UARTDRV_InitUart_t::ctsPort

A CTS pin port number.

ctsPin

uint8_t UARTDRV_InitUart_t::ctsPin

A CTS pin number.

rtsPort

GPIO_Port_TypeDef UARTDRV_InitUart_t::rtsPort

An RTS pin port number.

rtsPin

uint8_t UARTDRV_InitUart_t::rtsPin

An RTS pin number.

rxQueue

UARTDRV_Buffer_FifoQueue_t * UARTDRV_InitUart_t::rxQueue

A receive operation queue.

txQueue

UARTDRV_Buffer_FifoQueue_t * UARTDRV_InitUart_t::txQueue

T transmit operation queue.