USART driver for AVR XMEGA.
Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
|
static uint8_t | usart_get_baud_offset (uint32_t baud) |
| Get the offset for lookup in the baudrate table. More...
|
|
uint8_t | usart_getchar (USART_t *usart) |
| Receive a data with the USART module. More...
|
|
bool | usart_init_rs232 (USART_t *usart, const usart_rs232_options_t *opt) |
| Initialize USART in RS232 mode. More...
|
|
void | usart_init_spi (USART_t *usart, const usart_spi_options_t *opt) |
| Initialize USART in SPI master mode. More...
|
|
enum status_code | usart_putchar (USART_t *usart, uint8_t c) |
| Send a data with the USART module. More...
|
|
bool | usart_set_baudrate (USART_t *usart, uint32_t baud, uint32_t cpu_hz) |
| Set the baudrate value in the USART module. More...
|
|
void | usart_set_baudrate_precalculated (USART_t *usart, uint32_t baud, uint32_t cpu_hz) |
| Set the baudrate using precalculated BAUDCTRL values from PROGMEM. More...
|
|
void | usart_set_bsel_bscale_value (USART_t *usart, uint16_t bsel, uint8_t bscale) |
| Set the baudrate by setting the BSEL and BSCALE values in the USART. More...
|
|
void | usart_spi_set_baudrate (USART_t *usart, uint32_t baud, uint32_t cpu_hz) |
| Set the baudrate value in the USART_SPI module. More...
|
|