Type Alias SleepmodeW

Source
pub type SleepmodeW<'a, REG> = FieldWriter<'a, REG, 3, Sleepmodeselect>;
Expand description

Field SLEEPMODE writer - Sleep Mode

Aliased Type§

struct SleepmodeW<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> SleepmodeW<'a, REG>
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