pub struct Temp(_);
Expand description

Integrated temperature sensor.

Implementations

Creates a new Temp, taking ownership of the temperature sensor’s register block.

Starts a new measurement and blocks until completion.

If a measurement was already started, it will be canceled.

Kicks off a temperature measurement.

The measurement can be retrieved by calling read.

Cancels an in-progress temperature measurement.

Tries to read a started measurement (non-blocking).

Before calling this, start_measurement must be called.

Returns the measured temperature in °C.

Auto Trait Implementations

Blanket Implementations

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

Returns the argument unchanged.

Calls U::from(self).

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

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Should always be Self
Casts the value.
Casts the value.
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.
Casts the value.
Casts the value.
Casts the value.
Casts the value.