Type Alias atsame54n::dmac::crcctrl::W

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

Register CRCCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn crcbeatsize(&mut self) -> CRCBEATSIZE_W<'_, CRCCTRL_SPEC, 0>

Bits 0:1 - CRC Beat Size

source

pub fn crcpoly(&mut self) -> CRCPOLY_W<'_, CRCCTRL_SPEC, 2>

Bits 2:3 - CRC Polynomial Type

source

pub fn crcsrc(&mut self) -> CRCSRC_W<'_, CRCCTRL_SPEC, 8>

Bits 8:13 - CRC Input Source

source

pub fn crcmode(&mut self) -> CRCMODE_W<'_, CRCCTRL_SPEC, 14>

Bits 14:15 - CRC Operating Mode

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