Struct stm32f0xx_hal::adc::VTemp [−][src]
pub struct VTemp;
Expand description
Internal temperature sensor (ADC Channel 16)
Implementations
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.
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.