Type Alias atsame54n::i2s::txctrl::W

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

Register TXCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sermode(&mut self) -> SERMODE_W<'_, TXCTRL_SPEC, 0>

Bits 0:1 - Serializer Mode

source

pub fn txdefault(&mut self) -> TXDEFAULT_W<'_, TXCTRL_SPEC, 2>

Bits 2:3 - Line Default Line when Slot Disabled

source

pub fn txsame(&mut self) -> TXSAME_W<'_, TXCTRL_SPEC, 4>

Bit 4 - Transmit Data when Underrun

source

pub fn clksel(&mut self) -> CLKSEL_W<'_, TXCTRL_SPEC, 5>

Bit 5 - Clock Unit Selection

source

pub fn slotadj(&mut self) -> SLOTADJ_W<'_, TXCTRL_SPEC, 7>

Bit 7 - Data Slot Formatting Adjust

source

pub fn datasize(&mut self) -> DATASIZE_W<'_, TXCTRL_SPEC, 8>

Bits 8:10 - Data Word Size

source

pub fn wordadj(&mut self) -> WORDADJ_W<'_, TXCTRL_SPEC, 12>

Bit 12 - Data Word Formatting Adjust

source

pub fn extend(&mut self) -> EXTEND_W<'_, TXCTRL_SPEC, 13>

Bits 13:14 - Data Formatting Bit Extension

source

pub fn bitrev(&mut self) -> BITREV_W<'_, TXCTRL_SPEC, 15>

Bit 15 - Data Formatting Bit Reverse

source

pub fn slotdis0(&mut self) -> SLOTDIS0_W<'_, TXCTRL_SPEC, 16>

Bit 16 - Slot 0 Disabled for this Serializer

source

pub fn slotdis1(&mut self) -> SLOTDIS1_W<'_, TXCTRL_SPEC, 17>

Bit 17 - Slot 1 Disabled for this Serializer

source

pub fn slotdis2(&mut self) -> SLOTDIS2_W<'_, TXCTRL_SPEC, 18>

Bit 18 - Slot 2 Disabled for this Serializer

source

pub fn slotdis3(&mut self) -> SLOTDIS3_W<'_, TXCTRL_SPEC, 19>

Bit 19 - Slot 3 Disabled for this Serializer

source

pub fn slotdis4(&mut self) -> SLOTDIS4_W<'_, TXCTRL_SPEC, 20>

Bit 20 - Slot 4 Disabled for this Serializer

source

pub fn slotdis5(&mut self) -> SLOTDIS5_W<'_, TXCTRL_SPEC, 21>

Bit 21 - Slot 5 Disabled for this Serializer

source

pub fn slotdis6(&mut self) -> SLOTDIS6_W<'_, TXCTRL_SPEC, 22>

Bit 22 - Slot 6 Disabled for this Serializer

source

pub fn slotdis7(&mut self) -> SLOTDIS7_W<'_, TXCTRL_SPEC, 23>

Bit 23 - Slot 7 Disabled for this Serializer

source

pub fn mono(&mut self) -> MONO_W<'_, TXCTRL_SPEC, 24>

Bit 24 - Mono Mode

source

pub fn dma(&mut self) -> DMA_W<'_, TXCTRL_SPEC, 25>

Bit 25 - Single or Multiple DMA Channels

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