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) -> u32
fn max_measurement_duration(mode: PowerMode) -> u32
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)
impl ShtSensor for ShtGeneric
Auto Trait Implementations§
impl Freeze for ShtGeneric
impl RefUnwindSafe for ShtGeneric
impl Send for ShtGeneric
impl Sync for ShtGeneric
impl Unpin for ShtGeneric
impl UnwindSafe for ShtGeneric
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