Type Alias atsame54n::sercom0::usart_ext::ctrlb::W

source ·
pub type W = W<CTRLB_SPEC>;
Expand description

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn chsize(&mut self) -> CHSIZE_W<'_, CTRLB_SPEC, 0>

Bits 0:2 - Character Size

source

pub fn sbmode(&mut self) -> SBMODE_W<'_, CTRLB_SPEC, 6>

Bit 6 - Stop Bit Mode

source

pub fn colden(&mut self) -> COLDEN_W<'_, CTRLB_SPEC, 8>

Bit 8 - Collision Detection Enable

source

pub fn sfde(&mut self) -> SFDE_W<'_, CTRLB_SPEC, 9>

Bit 9 - Start of Frame Detection Enable

source

pub fn enc(&mut self) -> ENC_W<'_, CTRLB_SPEC, 10>

Bit 10 - Encoding Format

source

pub fn pmode(&mut self) -> PMODE_W<'_, CTRLB_SPEC, 13>

Bit 13 - Parity Mode

source

pub fn txen(&mut self) -> TXEN_W<'_, CTRLB_SPEC, 16>

Bit 16 - Transmitter Enable

source

pub fn rxen(&mut self) -> RXEN_W<'_, CTRLB_SPEC, 17>

Bit 17 - Receiver Enable

source

pub fn lincmd(&mut self) -> LINCMD_W<'_, CTRLB_SPEC, 24>

Bits 24:25 - LIN Command

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual