Type Alias atsame54n::icm::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 enable(&mut self) -> ENABLE_W<'_, CTRL_SPEC, 0>

Bit 0 - ICM Enable

source

pub fn disable(&mut self) -> DISABLE_W<'_, CTRL_SPEC, 1>

Bit 1 - ICM Disable Register

source

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

Bit 2 - Software Reset

source

pub fn rehash(&mut self) -> REHASH_W<'_, CTRL_SPEC, 4>

Bits 4:7 - Recompute Internal Hash

source

pub fn rmdis(&mut self) -> RMDIS_W<'_, CTRL_SPEC, 8>

Bits 8:11 - Region Monitoring Disable

source

pub fn rmen(&mut self) -> RMEN_W<'_, CTRL_SPEC, 12>

Bits 12:15 - Region Monitoring Enable

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