Type Alias atsame54p::dmac::channel::chctrla::W

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

Register CHCTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 0 - Channel Software Reset

source

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

Bit 1 - Channel Enable

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, CHCTRLA_SPEC, 6>

Bit 6 - Channel Run in Standby

source

pub fn trigsrc(&mut self) -> TRIGSRC_W<'_, CHCTRLA_SPEC, 8>

Bits 8:14 - Trigger Source

source

pub fn trigact(&mut self) -> TRIGACT_W<'_, CHCTRLA_SPEC, 20>

Bits 20:21 - Trigger Action

source

pub fn burstlen(&mut self) -> BURSTLEN_W<'_, CHCTRLA_SPEC, 24>

Bits 24:27 - Burst Length

source

pub fn threshold(&mut self) -> THRESHOLD_W<'_, CHCTRLA_SPEC, 28>

Bits 28:29 - FIFO Threshold

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