Struct shtcx::sensor_class::ShtGeneric
source · pub struct ShtGeneric;
Expand description
Type parameter: Generic driver that should work with all SHTCx sensors.
Trait Implementations§
source§impl MeasurementDuration for ShtGeneric
impl MeasurementDuration for ShtGeneric
source§fn max_measurement_duration(mode: PowerMode) -> u16
fn max_measurement_duration(mode: PowerMode) -> u16
Return the maximum measurement duration (depending on the mode) in microseconds.
Because this duration should work for all sensor models, it chooses the maximum duration of all models.
Maximum measurement duration:
- Normal mode: 14.4 ms (SHTC1, SHTW2)
- Low power mode: 0.94 ms (SHTC1, SHTW2)