#[repr(u8)]pub enum Sleepmodeselect {
Idle = 2,
Standby = 4,
Hibernate = 5,
Backup = 6,
Off = 7,
}
Expand description
Sleep Mode
Value on reset: 2
Variants§
Idle = 2
2: CPU, AHBx, and APBx clocks are OFF
Standby = 4
4: All Clocks are OFF
Hibernate = 5
5: Backup domain is ON as well as some PDRAMs
Backup = 6
6: Only Backup domain is powered ON
Off = 7
7: All power domains are powered OFF
Trait Implementations§
Source§impl Clone for Sleepmodeselect
impl Clone for Sleepmodeselect
Source§fn clone(&self) -> Sleepmodeselect
fn clone(&self) -> Sleepmodeselect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Sleepmodeselect
impl Debug for Sleepmodeselect
Source§impl From<Sleepmodeselect> for u8
impl From<Sleepmodeselect> for u8
Source§fn from(variant: Sleepmodeselect) -> Self
fn from(variant: Sleepmodeselect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Sleepmodeselect
impl PartialEq for Sleepmodeselect
impl Copy for Sleepmodeselect
impl Eq for Sleepmodeselect
impl IsEnum for Sleepmodeselect
impl StructuralPartialEq for Sleepmodeselect
Auto Trait Implementations§
impl Freeze for Sleepmodeselect
impl RefUnwindSafe for Sleepmodeselect
impl Send for Sleepmodeselect
impl Sync for Sleepmodeselect
impl Unpin for Sleepmodeselect
impl UnwindSafe for Sleepmodeselect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more