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:

  1. Set Register::PowerControl to Normal.
  2. Wait 50 milliseconds.
  3. Set Register::Reset to Initial.
  4. Wait 2 milliseconds.
  5. Set Register::Reset to Flag.

The datasheet has a nice state diagram summarizing this.

Variants

Normal

Normal operation.

Sleep

Sleep mode.

Standby60

Standby mode with the pixel temperature only being updated every 60 seconds.

Standby10

Standby mode with the pixel temperature only being updated every 10 seconds.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.