Type Alias atsame54n::pm::sleepcfg::W

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

Register SLEEPCFG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sleepmode(&mut self) -> SLEEPMODE_W<'_, SLEEPCFG_SPEC, 0>

Bits 0:2 - Sleep Mode

source

pub unsafe fn bits(&mut self, bits: u8) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual