3.3 Change Register Bit Field Configurations
This section covers considerations when updating a register bit field, using various header file defines. The RXMODE bit field will be used as an example, where an update is made compared to the initialization presented below.
USART0.CTRLB = USART_RXEN_bm /* Receiver Enable */ | USART_TXEN_bm /* Transmitter Enable */ | USART_RXMODE_LINAUTO_gc; /* LIN Constrained Auto-Baud mode */
The following subsections will provide code examples to change the Receiver Mode (RXMODE) configuration to Generic Auto-Baud (GENAUTO) mode. The available configurations for this bit field, as they are in the device data sheet, are presented in the table below.