Type Alias atsame54n::system_control::icsr::W

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

Register ICSR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn vectactive(&mut self) -> VECTACTIVE_W<'_, ICSR_SPEC, 0>

Bits 0:8 - Active exception number

source

pub fn rettobase(&mut self) -> RETTOBASE_W<'_, ICSR_SPEC, 11>

Bit 11 - No preempted active exceptions to execute

source

pub fn vectpending(&mut self) -> VECTPENDING_W<'_, ICSR_SPEC, 12>

Bits 12:17 - Exception number of the highest priority pending enabled exception

source

pub fn isrpending(&mut self) -> ISRPENDING_W<'_, ICSR_SPEC, 22>

Bit 22 - Interrupt pending flag

source

pub fn isrpreempt(&mut self) -> ISRPREEMPT_W<'_, ICSR_SPEC, 23>

Bit 23 - Debug only

source

pub fn pendstclr(&mut self) -> PENDSTCLR_W<'_, ICSR_SPEC, 25>

Bit 25 - SysTick clear-pending bit

source

pub fn pendstset(&mut self) -> PENDSTSET_W<'_, ICSR_SPEC, 26>

Bit 26 - SysTick set-pending bit

source

pub fn pendsvclr(&mut self) -> PENDSVCLR_W<'_, ICSR_SPEC, 27>

Bit 27 - PendSV clear-pending bit

source

pub fn pendsvset(&mut self) -> PENDSVSET_W<'_, ICSR_SPEC, 28>

Bit 28 - PendSV set-pending bit

source

pub fn nmipendset(&mut self) -> NMIPENDSET_W<'_, ICSR_SPEC, 31>

Bit 31 - NMI set-pending bit

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