Atmel Software Framework

usart_options_t Struct Reference

Input parameters when initializing RS232 and similar modes.

#include <usart.h>

Data Fields

unsigned long baudrate
 Set baud rate of the USART (unused in slave modes). More...
 
unsigned char channelmode
 Run the channel in testmode: USART_NORMAL_CHMODE, USART_AUTO_ECHO, USART_LOCAL_LOOPBACK or USART_REMOTE_LOOPBACK. More...
 
unsigned char charlength
 Number of bits to transmit as a character (5 to 9). More...
 
unsigned char paritytype
 How to calculate the parity bit: USART_EVEN_PARITY, USART_ODD_PARITY, USART_SPACE_PARITY, USART_MARK_PARITY, USART_NO_PARITY or USART_MULTIDROP_PARITY. More...
 
unsigned short stopbits
 Number of stop bits between two characters: USART_1_STOPBIT, USART_1_5_STOPBITS, USART_2_STOPBITS or any number from 3 to 257 which will result in a time guard period of that length between characters. More...
 

unsigned char usart_options_t::charlength

Number of bits to transmit as a character (5 to 9).

Referenced by uart_config(), usart_init_rs232(), usart_init_rs232_tx_only(), usart_init_sync_master(), and usart_init_sync_slave().

unsigned short usart_options_t::stopbits

Number of stop bits between two characters: USART_1_STOPBIT, USART_1_5_STOPBITS, USART_2_STOPBITS or any number from 3 to 257 which will result in a time guard period of that length between characters.

Note
USART_1_5_STOPBITS is supported in asynchronous modes only.

Referenced by uart_config(), usart_init_rs232(), usart_init_rs232_tx_only(), usart_init_sync_master(), and usart_init_sync_slave().