UARTDRV_InitEuart_t Struct Reference

UART driver instance initialization structure.

#include <uartdrv.h>

Data Fields

EUSART_TypeDef * port
The peripheral used for EUART.
bool useLowFrequencyMode
Clock configuration of the EUART.
uint32_t baudRate
EUART baud rate.
GPIO_Port_TypeDef txPort
Port for UART Tx pin.
GPIO_Port_TypeDef rxPort
Port for UART Rx pin.
uint8_t txPin
Pin number for UART Tx.
uint8_t rxPin
Pin number for UART Rx.
uint8_t uartNum
EUART instance number.
EUSART_Stopbits_TypeDef stopBits
Number of stop bits.
EUSART_Parity_TypeDef parity
Parity configuration.
EUSART_OVS_TypeDef oversampling
Oversampling mode.
EUSART_MajorityVote_TypeDef mvdis
Majority Vote Disable for 16x, 8x and 6x oversampling modes.
UARTDRV_FlowControlType_t fcType
Flow control mode.
GPIO_Port_TypeDef ctsPort
CTS pin port number.
uint8_t ctsPin
CTS pin number.
GPIO_Port_TypeDef rtsPort
RTS pin port number.
uint8_t rtsPin
RTS pin number.
UARTDRV_Buffer_FifoQueue_t * rxQueue
Receive operation queue.
UARTDRV_Buffer_FifoQueue_t * txQueue
Transmit operation queue.

UART driver instance initialization structure.

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

Field Documentation

port

EUSART_TypeDef* UARTDRV_InitEuart_t::port

The peripheral used for EUART.

useLowFrequencyMode

bool UARTDRV_InitEuart_t::useLowFrequencyMode

Clock configuration of the EUART.

baudRate

uint32_t UARTDRV_InitEuart_t::baudRate

EUART baud rate.

txPort

GPIO_Port_TypeDef UARTDRV_InitEuart_t::txPort

Port for UART Tx pin.

rxPort

GPIO_Port_TypeDef UARTDRV_InitEuart_t::rxPort

Port for UART Rx pin.

txPin

uint8_t UARTDRV_InitEuart_t::txPin

Pin number for UART Tx.

rxPin

uint8_t UARTDRV_InitEuart_t::rxPin

Pin number for UART Rx.

uartNum

uint8_t UARTDRV_InitEuart_t::uartNum

EUART instance number.

stopBits

EUSART_Stopbits_TypeDef UARTDRV_InitEuart_t::stopBits

Number of stop bits.

parity

EUSART_Parity_TypeDef UARTDRV_InitEuart_t::parity

Parity configuration.

oversampling

EUSART_OVS_TypeDef UARTDRV_InitEuart_t::oversampling

Oversampling mode.

mvdis

EUSART_MajorityVote_TypeDef UARTDRV_InitEuart_t::mvdis

Majority Vote Disable for 16x, 8x and 6x oversampling modes.

fcType

UARTDRV_FlowControlType_t UARTDRV_InitEuart_t::fcType

Flow control mode.

ctsPort

GPIO_Port_TypeDef UARTDRV_InitEuart_t::ctsPort

CTS pin port number.

ctsPin

uint8_t UARTDRV_InitEuart_t::ctsPin

CTS pin number.

rtsPort

GPIO_Port_TypeDef UARTDRV_InitEuart_t::rtsPort

RTS pin port number.

rtsPin

uint8_t UARTDRV_InitEuart_t::rtsPin

RTS pin number.

rxQueue

UARTDRV_Buffer_FifoQueue_t * UARTDRV_InitEuart_t::rxQueue

Receive operation queue.

txQueue

UARTDRV_Buffer_FifoQueue_t * UARTDRV_InitEuart_t::txQueue

Transmit operation queue.