Microchip® Advanced Software Framework

usart_rs232_options Struct Reference

Input parameters when initializing RS232 and similar modes.

#include <usart.h>

Data Fields

uint32_t baudrate
 Set baud rate of the USART (unused in slave modes). More...
 
USART_CHSIZE_t charlength
 Number of bits to transmit as a character (5 to 9). More...
 
USART_PMODE_t paritytype
 Parity type: USART_PMODE_DISABLED_gc, USART_PMODE_EVEN_gc, USART_PMODE_ODD_gc. More...
 
bool stopbits
 Number of stop bits between two characters: true: 2 stop bits false: 1 stop bit. More...
 

uint32_t usart_rs232_options::baudrate

Set baud rate of the USART (unused in slave modes).

Referenced by log_init(), main(), sensor_platform_init(), usart_init_rs232(), and usart_serial_init().

USART_CHSIZE_t usart_rs232_options::charlength

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

Referenced by main(), usart_init_rs232(), and usart_serial_init().

USART_PMODE_t usart_rs232_options::paritytype

Parity type: USART_PMODE_DISABLED_gc, USART_PMODE_EVEN_gc, USART_PMODE_ODD_gc.

Referenced by main(), usart_init_rs232(), and usart_serial_init().

bool usart_rs232_options::stopbits

Number of stop bits between two characters: true: 2 stop bits false: 1 stop bit.

Referenced by main(), usart_init_rs232(), and usart_serial_init().