Type Alias atsame54n::pcc::mr::W

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

Register MR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn pcen(&mut self) -> PCEN_W<'_, MR_SPEC, 0>

Bit 0 - Parallel Capture Enable

source

pub fn dsize(&mut self) -> DSIZE_W<'_, MR_SPEC, 4>

Bits 4:5 - Data size

source

pub fn scale(&mut self) -> SCALE_W<'_, MR_SPEC, 8>

Bit 8 - Scale data

source

pub fn alwys(&mut self) -> ALWYS_W<'_, MR_SPEC, 9>

Bit 9 - Always Sampling

source

pub fn halfs(&mut self) -> HALFS_W<'_, MR_SPEC, 10>

Bit 10 - Half Sampling

source

pub fn frsts(&mut self) -> FRSTS_W<'_, MR_SPEC, 11>

Bit 11 - First sample

source

pub fn isize(&mut self) -> ISIZE_W<'_, MR_SPEC, 16>

Bits 16:18 - Input Data Size

source

pub fn cid(&mut self) -> CID_W<'_, MR_SPEC, 30>

Bits 30:31 - Clear If Disabled

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