Struct lm73::Lm73

source ·
pub struct Lm73<I2C> { /* private fields */ }
Expand description

Lm73 device driver.

Implementations§

Create new instance of the lm73 device.

Destroy driver instance, return I²C bus instance.

Enable the sensor (default state).

Disable the sensor (shutdown).

Set temperature resolution.

Set temperature conversion resolution.

Set the OneShot operation mode.

Reset Alert pin.

Set the ALRT_POL polarity.

Set the ALRT_EN

Set temperature_high (celsius).

Set temperature_low (celsius).

Read the temperature from the sensor (celsius).

Read the identification sensor register.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.