#[repr(u8)]pub enum PowerControlValue {
Normal = 0,
Sleep = 16,
Standby60 = 32,
Standby10 = 33,
}Expand description
On power on, the device is in normal mode. There are no restrictions for leaving normal mode. In sleep mode, the only valid mode to change to is normal mode. When leaving sleep mode the value of other registers are undefined, and must be reset with this procedure:
- Set Register::PowerControl to
Normal. - Wait 50 milliseconds.
- Set Register::Reset to
Initial. - Wait 2 milliseconds.
- Set Register::Reset to
Flag.
The datasheet has a nice state diagram summarizing this.
Variants§
Normal = 0
Normal operation.
Sleep = 16
Sleep mode.
Standby60 = 32
Standby mode with the pixel temperature only being updated every 60 seconds.
Standby10 = 33
Standby mode with the pixel temperature only being updated every 10 seconds.
Trait Implementations§
Source§impl Clone for PowerControlValue
impl Clone for PowerControlValue
Source§fn clone(&self) -> PowerControlValue
fn clone(&self) -> PowerControlValue
Returns a duplicate 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 PowerControlValue
impl Debug for PowerControlValue
Source§impl From<PowerControlValue> for u8
impl From<PowerControlValue> for u8
Source§fn from(enum_value: PowerControlValue) -> Self
fn from(enum_value: PowerControlValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PowerControlValue
impl PartialEq for PowerControlValue
Source§impl TryFrom<u8> for PowerControlValue
impl TryFrom<u8> for PowerControlValue
Source§type Error = TryFromPrimitiveError<PowerControlValue>
type Error = TryFromPrimitiveError<PowerControlValue>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PowerControlValue
impl TryFromPrimitive for PowerControlValue
impl Copy for PowerControlValue
impl StructuralPartialEq for PowerControlValue
Auto Trait Implementations§
impl Freeze for PowerControlValue
impl RefUnwindSafe for PowerControlValue
impl Send for PowerControlValue
impl Sync for PowerControlValue
impl Unpin for PowerControlValue
impl UnwindSafe for PowerControlValue
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