Type Alias atsame54p::system_control::shcsr::W

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

Register SHCSR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn memfaultact(&mut self) -> MEMFAULTACT_W<'_, SHCSR_SPEC, 0>

Bit 0 - MemManage exception active bit

source

pub fn busfaultact(&mut self) -> BUSFAULTACT_W<'_, SHCSR_SPEC, 1>

Bit 1 - BusFault exception active bit

source

pub fn usgfaultact(&mut self) -> USGFAULTACT_W<'_, SHCSR_SPEC, 3>

Bit 3 - UsageFault exception active bit

source

pub fn svcallact(&mut self) -> SVCALLACT_W<'_, SHCSR_SPEC, 7>

Bit 7 - SVCall active bit

source

pub fn monitoract(&mut self) -> MONITORACT_W<'_, SHCSR_SPEC, 8>

Bit 8 - DebugMonitor exception active bit

source

pub fn pendsvact(&mut self) -> PENDSVACT_W<'_, SHCSR_SPEC, 10>

Bit 10 - PendSV exception active bit

source

pub fn systickact(&mut self) -> SYSTICKACT_W<'_, SHCSR_SPEC, 11>

Bit 11 - SysTick exception active bit

source

pub fn usgfaultpended(&mut self) -> USGFAULTPENDED_W<'_, SHCSR_SPEC, 12>

Bit 12 - UsageFault exception pending bit

source

pub fn memfaultpended(&mut self) -> MEMFAULTPENDED_W<'_, SHCSR_SPEC, 13>

Bit 13 - MemManage exception pending bit

source

pub fn busfaultpended(&mut self) -> BUSFAULTPENDED_W<'_, SHCSR_SPEC, 14>

Bit 14 - BusFault exception pending bit

source

pub fn svcallpended(&mut self) -> SVCALLPENDED_W<'_, SHCSR_SPEC, 15>

Bit 15 - SVCall pending bit

source

pub fn memfaultena(&mut self) -> MEMFAULTENA_W<'_, SHCSR_SPEC, 16>

Bit 16 - MemManage enable bit

source

pub fn busfaultena(&mut self) -> BUSFAULTENA_W<'_, SHCSR_SPEC, 17>

Bit 17 - BusFault enable bit

source

pub fn usgfaultena(&mut self) -> USGFAULTENA_W<'_, SHCSR_SPEC, 18>

Bit 18 - UsageFault enable 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