Type Alias atsamd51p::system_control::ccr::W

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

Register CCR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn nonbasethrdena(&mut self) -> NONBASETHRDENA_W<'_, CCR_SPEC, 0>

Bit 0 - Indicates how processor enters Thread mode

source

pub fn usersetmpend(&mut self) -> USERSETMPEND_W<'_, CCR_SPEC, 1>

Bit 1 - Enables unprivileged software access to STIR register

source

pub fn unalign_trp(&mut self) -> UNALIGN_TRP_W<'_, CCR_SPEC, 3>

Bit 3 - Enables unaligned access traps

source

pub fn div_0_trp(&mut self) -> DIV_0_TRP_W<'_, CCR_SPEC, 4>

Bit 4 - Enables divide by 0 trap

source

pub fn bfhfnmign(&mut self) -> BFHFNMIGN_W<'_, CCR_SPEC, 8>

Bit 8 - Ignore LDM/STM BusFault for -1/-2 priority handlers

source

pub fn stkalign(&mut self) -> STKALIGN_W<'_, CCR_SPEC, 9>

Bit 9 - Indicates stack alignment on exception entry

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