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

Public Attributes#

EUSART_TypeDef *

The peripheral used for EUART.

bool

Clock configuration of the EUART.

uint32_t

EUART baud rate.

GPIO_Port_TypeDef

Port for UART Tx pin.

GPIO_Port_TypeDef

Port for UART Rx pin.

uint8_t

Pin number for UART Tx.

uint8_t

Pin number for UART Rx.

uint8_t

EUART instance number.

EUSART_Stopbits_TypeDef

Number of stop bits.

EUSART_Parity_TypeDef

Parity configuration.

EUSART_OVS_TypeDef

Oversampling mode.

EUSART_MajorityVote_TypeDef

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

GPIO_Port_TypeDef

CTS pin port number.

uint8_t

CTS pin number.

GPIO_Port_TypeDef

RTS pin port number.

uint8_t

RTS pin number.

Receive operation queue.

Transmit operation queue.

Public Attribute Documentation#

port#

EUSART_TypeDef* UARTDRV_InitEuart_t::port

The peripheral used for EUART.


Definition at line 309 of file platform/emdrv/uartdrv/inc/uartdrv.h

useLowFrequencyMode#

bool UARTDRV_InitEuart_t::useLowFrequencyMode

Clock configuration of the EUART.


Definition at line 310 of file platform/emdrv/uartdrv/inc/uartdrv.h

baudRate#

uint32_t UARTDRV_InitEuart_t::baudRate

EUART baud rate.


Definition at line 311 of file platform/emdrv/uartdrv/inc/uartdrv.h

txPort#

GPIO_Port_TypeDef UARTDRV_InitEuart_t::txPort

Port for UART Tx pin.


Definition at line 316 of file platform/emdrv/uartdrv/inc/uartdrv.h

rxPort#

GPIO_Port_TypeDef UARTDRV_InitEuart_t::rxPort

Port for UART Rx pin.


Definition at line 317 of file platform/emdrv/uartdrv/inc/uartdrv.h

txPin#

uint8_t UARTDRV_InitEuart_t::txPin

Pin number for UART Tx.


Definition at line 319 of file platform/emdrv/uartdrv/inc/uartdrv.h

rxPin#

uint8_t UARTDRV_InitEuart_t::rxPin

Pin number for UART Rx.


Definition at line 320 of file platform/emdrv/uartdrv/inc/uartdrv.h

uartNum#

uint8_t UARTDRV_InitEuart_t::uartNum

EUART instance number.


Definition at line 321 of file platform/emdrv/uartdrv/inc/uartdrv.h

stopBits#

EUSART_Stopbits_TypeDef UARTDRV_InitEuart_t::stopBits

Number of stop bits.


Definition at line 328 of file platform/emdrv/uartdrv/inc/uartdrv.h

parity#

EUSART_Parity_TypeDef UARTDRV_InitEuart_t::parity

Parity configuration.


Definition at line 329 of file platform/emdrv/uartdrv/inc/uartdrv.h

oversampling#

EUSART_OVS_TypeDef UARTDRV_InitEuart_t::oversampling

Oversampling mode.


Definition at line 330 of file platform/emdrv/uartdrv/inc/uartdrv.h

mvdis#

EUSART_MajorityVote_TypeDef UARTDRV_InitEuart_t::mvdis

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


Definition at line 331 of file platform/emdrv/uartdrv/inc/uartdrv.h

fcType#

UARTDRV_FlowControlType_t UARTDRV_InitEuart_t::fcType

Flow control mode.


Definition at line 333 of file platform/emdrv/uartdrv/inc/uartdrv.h

ctsPort#

GPIO_Port_TypeDef UARTDRV_InitEuart_t::ctsPort

CTS pin port number.


Definition at line 340 of file platform/emdrv/uartdrv/inc/uartdrv.h

ctsPin#

uint8_t UARTDRV_InitEuart_t::ctsPin

CTS pin number.


Definition at line 341 of file platform/emdrv/uartdrv/inc/uartdrv.h

rtsPort#

GPIO_Port_TypeDef UARTDRV_InitEuart_t::rtsPort

RTS pin port number.


Definition at line 342 of file platform/emdrv/uartdrv/inc/uartdrv.h

rtsPin#

uint8_t UARTDRV_InitEuart_t::rtsPin

RTS pin number.


Definition at line 343 of file platform/emdrv/uartdrv/inc/uartdrv.h

rxQueue#

UARTDRV_Buffer_FifoQueue_t* UARTDRV_InitEuart_t::rxQueue

Receive operation queue.


Definition at line 345 of file platform/emdrv/uartdrv/inc/uartdrv.h

txQueue#

UARTDRV_Buffer_FifoQueue_t* UARTDRV_InitEuart_t::txQueue

Transmit operation queue.


Definition at line 346 of file platform/emdrv/uartdrv/inc/uartdrv.h