pub struct MCP9808<I2C> { /* private fields */ }
Expand description
MCP9808 Driver
Implementations§
source§impl<I2C> MCP9808<I2C>
impl<I2C> MCP9808<I2C>
sourcepub fn set_address(&mut self, addr: SlaveAddress) -> u8
pub fn set_address(&mut self, addr: SlaveAddress) -> u8
Change i2c address
pub fn write_register<R: Write>( &mut self, reg: R ) -> Result<(), Error<I2C::Error>>
pub fn read_configuration( &mut self ) -> Result<impl Configuration, Error<I2C::Error>>
pub fn read_device_id(&mut self) -> Result<impl DeviceId, Error<I2C::Error>>
pub fn read_manufacturer_id( &mut self ) -> Result<impl ManufacturerId, Error<I2C::Error>>
pub fn read_resolution(&mut self) -> Result<impl Resolution, Error<I2C::Error>>
sourcepub fn read_temperature(
&mut self
) -> Result<impl Temperature, Error<I2C::Error>>
pub fn read_temperature( &mut self ) -> Result<impl Temperature, Error<I2C::Error>>
Read temperature register. Its double-buffered so no wait required.
pub fn read_alert_critical( &mut self ) -> Result<impl CriticalTemperatureAlert, Error<I2C::Error>>
pub fn read_alert_lower( &mut self ) -> Result<impl LowerTemperatureAlert, Error<I2C::Error>>
pub fn read_alert_upper( &mut self ) -> Result<impl UpperTemperatureAlert, Error<I2C::Error>>
Auto Trait Implementations§
impl<I2C> Freeze for MCP9808<I2C>where
I2C: Freeze,
impl<I2C> RefUnwindSafe for MCP9808<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for MCP9808<I2C>where
I2C: Send,
impl<I2C> Sync for MCP9808<I2C>where
I2C: Sync,
impl<I2C> Unpin for MCP9808<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for MCP9808<I2C>where
I2C: UnwindSafe,
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