Type Alias Hs3003ComponentType

Source
pub type Hs3003ComponentType<I> = Hs3003<'static, I>;

Aliased Type§

struct Hs3003ComponentType<I> { /* private fields */ }

Implementations

Source§

impl<'a, I> Hs3003<'a, I>
where I: I2CDevice,

Source

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

Source

pub fn start_reading(&self) -> Result<(), ErrorCode>

Trait Implementations

Source§

impl<'a, I> HumidityDriver<'a> for Hs3003<'a, I>
where I: I2CDevice,

Source§

impl<I> I2CClient for Hs3003<'_, I>
where 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, I> TemperatureDriver<'a> for Hs3003<'a, I>
where I: I2CDevice,