Type Alias atsame54n::pm::sleepcfg::SLEEPMODE_W

source ·
pub type SLEEPMODE_W<'a, REG, const O: u8> = FieldWriter<'a, REG, 3, O, SLEEPMODESELECT_A>;
Expand description

Field SLEEPMODE writer - Sleep Mode

Aliased Type§

struct SLEEPMODE_W<'a, REG, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, REG, const O: u8> SLEEPMODE_W<'a, REG, O>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn idle(self) -> &'a mut W<REG>

CPU, AHBx, and APBx clocks are OFF

source

pub fn standby(self) -> &'a mut W<REG>

All Clocks are OFF

source

pub fn hibernate(self) -> &'a mut W<REG>

Backup domain is ON as well as some PDRAMs

source

pub fn backup(self) -> &'a mut W<REG>

Only Backup domain is powered ON

source

pub fn off(self) -> &'a mut W<REG>

All power domains are powered OFF