PER Firmware
Loading...
Searching...
No Matches
usart_init_t Struct Reference

#include <usart.h>

Collaboration diagram for usart_init_t:
[legend]

Public Attributes

uint32_t baud_rate
 Baud rate for communication.
 
word_length_t word_length
 Word length for tx/rx (8 default)
 
stop_bits_t stop_bits
 Number of stop bits to use (1 default)
 
parity_t parity
 Parity of communication (none default)
 
hw_flow_ctl_t hw_flow_ctl
 Special hardware modes (none default)
 
ovsample_t ovsample
 8x or 16x oversample (16x default)
 
obsample_t obsample
 One bit sampling enable (off default)
 
bool wake_addr
 Wake up when given a specific address.
 
uint8_t address
 Address to wake up to when addr_mode is enabled.
 
uint8_t usart_active_num
 Index of USART in active array (see USARTx_ACTIVE_IDX)
 
dma_init_ttx_dma_cfg
 TX configuration.
 
dma_init_trx_dma_cfg
 RX configuration.
 
USART_TypeDef * periph
 USART Peripheral to be used.
 
volatile usart_tx_errors_t tx_errors
 Any TX error flags set during transmission.
 
volatile usart_rx_errors_t rx_errors
 Any RX error flags set during reception.
 

Member Data Documentation

◆ address

uint8_t usart_init_t::address

Address to wake up to when addr_mode is enabled.

◆ baud_rate

uint32_t usart_init_t::baud_rate

Baud rate for communication.

◆ hw_flow_ctl

hw_flow_ctl_t usart_init_t::hw_flow_ctl

Special hardware modes (none default)

◆ obsample

obsample_t usart_init_t::obsample

One bit sampling enable (off default)

◆ ovsample

ovsample_t usart_init_t::ovsample

8x or 16x oversample (16x default)

◆ parity

parity_t usart_init_t::parity

Parity of communication (none default)

◆ periph

USART_TypeDef* usart_init_t::periph

USART Peripheral to be used.

◆ rx_dma_cfg

dma_init_t* usart_init_t::rx_dma_cfg

RX configuration.

◆ rx_errors

volatile usart_rx_errors_t usart_init_t::rx_errors

Any RX error flags set during reception.

◆ stop_bits

stop_bits_t usart_init_t::stop_bits

Number of stop bits to use (1 default)

◆ tx_dma_cfg

dma_init_t* usart_init_t::tx_dma_cfg

TX configuration.

◆ tx_errors

volatile usart_tx_errors_t usart_init_t::tx_errors

Any TX error flags set during transmission.

◆ usart_active_num

uint8_t usart_init_t::usart_active_num

Index of USART in active array (see USARTx_ACTIVE_IDX)

◆ wake_addr

bool usart_init_t::wake_addr

Wake up when given a specific address.

◆ word_length

word_length_t usart_init_t::word_length

Word length for tx/rx (8 default)


The documentation for this struct was generated from the following file: