Trait shtcx::LowPower

source ·
pub trait LowPower<E> {
    const WAKEUP_TIME_US: u16;

    fn sleep(&mut self) -> Result<(), Error<E>>;
    fn start_wakeup(&mut self) -> Result<(), Error<E>>;
    fn wakeup(&mut self, delay: &mut impl DelayUs<u16>) -> Result<(), Error<E>>;
}
Expand description

Low power functionality (sleep and wakeup).

This functionality is only present on some of the sensors (e.g. the SHTC3, but not the SHTC1).

Required Associated Constants§

Time the sensor needs until it is ready after a wakeup call.

Required Methods§

Set sensor to sleep mode.

When in sleep mode, the sensor consumes around 0.3-0.6 µA. It requires a dedicated wakeup command to enable further I2C communication.

Wake up sensor from sleep mode.

Wake up sensor from sleep mode and wait until it is ready.

Implementors§