Struct stm32f0xx_hal::adc::VTemp[][src]

pub struct VTemp;
Expand description

Internal temperature sensor (ADC Channel 16)

Implementations

Init a new VTemp

Enable the internal temperature sense, this has a wake up time tSTART which can be found in your micro’s datasheet, you must wait at least that long after enabling before taking a reading. Remember to disable when not in use.

Disable the internal temperature sense.

Checks if the temperature sensor is enabled, does not account for the tSTART time however.

Read the value of the internal temperature sensor and return the result in 10ths of a degree centigrade.

Given a delay reference it will attempt to restrict to the minimum delay needed to ensure a 10 us tSTART value. Otherwise it will approximate the required delay using ADC reads.

Trait Implementations

Channel ID type Read more

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8. Read more

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

Performs the conversion.

Performs the conversion.

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.