Type Alias atsame54n::i2s::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 cken0(&mut self) -> CKEN0_W<'_, CTRLA_SPEC, 2>

Bit 2 - Clock Unit 0 Enable

source

pub fn cken1(&mut self) -> CKEN1_W<'_, CTRLA_SPEC, 3>

Bit 3 - Clock Unit 1 Enable

source

pub fn txen(&mut self) -> TXEN_W<'_, CTRLA_SPEC, 4>

Bit 4 - Tx Serializer Enable

source

pub fn rxen(&mut self) -> RXEN_W<'_, CTRLA_SPEC, 5>

Bit 5 - Rx Serializer Enable

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual