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