pub enum Command {
    CheckStatus,
    Initialize,
    Calibrate,
    TriggerMeasurement,
    SoftReset,
}
Expand description

Commands that can be sent to the AHT20 sensor.

Note that a few of these take parameters but that there are no explanations provided about what those parameters actually are. You should consider the command and specified parameters to be just one three-byte command. These can be found in the datasheet, Section 5.3, page 8, Table 9.

Variants

CheckStatus

Initialize

Calibrate

TriggerMeasurement

SoftReset

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.