Type Alias SI7021ComponentType

Source
pub type SI7021ComponentType<A, I> = SI7021<'static, A, I>;

Aliased Type§

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

Implementations

Source§

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

Source

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

Source

pub fn read_id(&self)

Trait Implementations

Source§

impl<'a, A, I> AlarmClient for SI7021<'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 SI7021<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,

Source§

impl<'a, A, I> I2CClient for SI7021<'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 SI7021<'a, A, I>
where A: Alarm<'a>, I: I2CDevice,