Type Alias atsame54n::sercom0::usart_ext::ctrla::W

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

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>

Bit 0 - Software Reset

source

pub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>

Bit 1 - Enable

source

pub fn mode(&mut self) -> MODE_W<'_, CTRLA_SPEC, 2>

Bits 2:4 - Operating Mode

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, CTRLA_SPEC, 7>

Bit 7 - Run during Standby

source

pub fn ibon(&mut self) -> IBON_W<'_, CTRLA_SPEC, 8>

Bit 8 - Immediate Buffer Overflow Notification

source

pub fn txinv(&mut self) -> TXINV_W<'_, CTRLA_SPEC, 9>

Bit 9 - Transmit Data Invert

source

pub fn rxinv(&mut self) -> RXINV_W<'_, CTRLA_SPEC, 10>

Bit 10 - Receive Data Invert

source

pub fn sampr(&mut self) -> SAMPR_W<'_, CTRLA_SPEC, 13>

Bits 13:15 - Sample

source

pub fn txpo(&mut self) -> TXPO_W<'_, CTRLA_SPEC, 16>

Bits 16:17 - Transmit Data Pinout

source

pub fn rxpo(&mut self) -> RXPO_W<'_, CTRLA_SPEC, 20>

Bits 20:21 - Receive Data Pinout

source

pub fn sampa(&mut self) -> SAMPA_W<'_, CTRLA_SPEC, 22>

Bits 22:23 - Sample Adjustment

source

pub fn form(&mut self) -> FORM_W<'_, CTRLA_SPEC, 24>

Bits 24:27 - Frame Format

source

pub fn cmode(&mut self) -> CMODE_W<'_, CTRLA_SPEC, 28>

Bit 28 - Communication Mode

source

pub fn cpol(&mut self) -> CPOL_W<'_, CTRLA_SPEC, 29>

Bit 29 - Clock Polarity

source

pub fn dord(&mut self) -> DORD_W<'_, CTRLA_SPEC, 30>

Bit 30 - Data Order

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