Type Alias atsame54n::dmac::ctrl::W

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

Register CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 0 - Software Reset

source

pub fn dmaenable(&mut self) -> DMAENABLE_W<'_, CTRL_SPEC, 1>

Bit 1 - DMA Enable

source

pub fn lvlen0(&mut self) -> LVLEN0_W<'_, CTRL_SPEC, 8>

Bit 8 - Priority Level 0 Enable

source

pub fn lvlen1(&mut self) -> LVLEN1_W<'_, CTRL_SPEC, 9>

Bit 9 - Priority Level 1 Enable

source

pub fn lvlen2(&mut self) -> LVLEN2_W<'_, CTRL_SPEC, 10>

Bit 10 - Priority Level 2 Enable

source

pub fn lvlen3(&mut self) -> LVLEN3_W<'_, CTRL_SPEC, 11>

Bit 11 - Priority Level 3 Enable

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual