UART functions for AVR Xmega.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
ISR (USART_RX_Vect) | |
ISR (USART_DRE_Vect) | |
void | uart_close (uint8_t port) |
Closes communication line. More... | |
void | uart_config (uint8_t port, usb_cdc_line_coding_t *cfg) |
Configures communication line. More... | |
void | uart_open (uint8_t port) |
Opens communication line. More... | |
void | uart_rx_notify (uint8_t port) |
Called by CDC interface Callback running when CDC device have received data. More... | |
ISR | ( | USART_RX_Vect | ) |
ISR | ( | USART_DRE_Vect | ) |
References udi_cdc_getc(), udi_cdc_is_rx_ready(), ui_com_rx_start(), and ui_com_rx_stop().
void uart_close | ( | uint8_t | port | ) |
void uart_config | ( | uint8_t | port, |
usb_cdc_line_coding_t * | cfg | ||
) |
Configures communication line.
cfg | line configuration |
References usb_cdc_line_coding_t::bCharFormat, usb_cdc_line_coding_t::bDataBits, usb_cdc_line_coding_t::bParityType, CDC_PAR_EVEN, CDC_PAR_NONE, CDC_PAR_ODD, CDC_STOP_BITS_1, CDC_STOP_BITS_2, usb_cdc_line_coding_t::dwDTERate, le32_to_cpu, sysclk_enable_module(), and sysclk_get_cpu_hz().
void uart_open | ( | uint8_t | port | ) |
void uart_rx_notify | ( | uint8_t | port | ) |
Called by CDC interface Callback running when CDC device have received data.