Type Alias atsame54n::system_control::scr::W

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

Register SCR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sleeponexit(&mut self) -> SLEEPONEXIT_W<'_, SCR_SPEC, 1>

Bit 1 - Sleep-on-exit on handler return

source

pub fn sleepdeep(&mut self) -> SLEEPDEEP_W<'_, SCR_SPEC, 2>

Bit 2 - Deep Sleep used as low power mode

source

pub fn sevonpend(&mut self) -> SEVONPEND_W<'_, SCR_SPEC, 4>

Bit 4 - Send Event on 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