Type Alias atsame54n::system_control::dfsr::W

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

Register DFSR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn halted(&mut self) -> HALTED_W<'_, DFSR_SPEC, 0>

Bit 0

source

pub fn bkpt(&mut self) -> BKPT_W<'_, DFSR_SPEC, 1>

Bit 1

source

pub fn dwttrap(&mut self) -> DWTTRAP_W<'_, DFSR_SPEC, 2>

Bit 2

source

pub fn vcatch(&mut self) -> VCATCH_W<'_, DFSR_SPEC, 3>

Bit 3

source

pub fn external(&mut self) -> EXTERNAL_W<'_, DFSR_SPEC, 4>

Bit 4

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