Type Alias SHT3xComponentType

Source
pub type SHT3xComponentType<A, I> = SHT3x<'static, A, I>;

Aliased Type§

struct SHT3xComponentType<A, I> { /* private fields */ }

Implementations

Source§

impl<'a, A, I> SHT3x<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,

Source

pub fn new( i2c: &'a I, buffer: &'static mut [u8], alarm: &'a A, ) -> SHT3x<'a, A, I>

Trait Implementations

Source§

impl<'a, A, I> AlarmClient for SHT3x<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,

Source§

fn alarm(&self)

Callback indicating the alarm time has been reached. The alarm MUST be disabled when this is called. If a new alarm is needed, the client can call Alarm::set_alarm.
Source§

impl<'a, A, I> HumidityDriver<'a> for SHT3x<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,

Source§

impl<'a, A, I> I2CClient for SHT3x<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,

Source§

fn command_complete(&self, buffer: &'static mut [u8], status: Result<(), Error>)

Called when an I2C command completed. The error denotes whether the command completed successfully or if an error occured.
Source§

impl<'a, A, I> TemperatureDriver<'a> for SHT3x<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,