Enum amg88::PowerControlValue [−][src]
#[repr(u8)] pub enum PowerControlValue { Normal, Sleep, Standby60, Standby10, }
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 operation.
Sleep mode.
Standby mode with the pixel temperature only being updated every 60 seconds.
Standby mode with the pixel temperature only being updated every 10 seconds.
Trait Implementations
Performs the conversion.
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PowerControlValue
impl Send for PowerControlValue
impl Sync for PowerControlValue
impl Unpin for PowerControlValue
impl UnwindSafe for PowerControlValue
Blanket Implementations
Mutably borrows from an owned value. Read more