Temperature Sensor, Vrefint and Vbat management functions.
More...
Temperature Sensor, Vrefint and Vbat management functions.
===============================================================================
##### Temperature Sensor, Vrefint and Vbat management function #####
===============================================================================
[..] This section provides a function allowing to enable/disable the internal
connections between the ADC and the Temperature Sensor, the Vrefint and
Vbat source.
[..] A typical configuration to get the Temperature sensor, Vrefint and Vbat channels
voltages is done following these steps :
(#) Enable the internal connection of Temperature sensor, Vrefint or Vbat sources
with the ADC channels using ADC_TempSensorCmd(), ADC_VrefintCmd() or ADC_VbatCmd()
functions.
(#) select the ADC_Channel_16(Temperature sensor), ADC_Channel_17(Vrefint)
or ADC_Channel_18(Voltage battery) using ADC_ChannelConfig() function
(#) Get the voltage values, using ADC_GetConversionValue() function
void ADC_TempSensorCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the temperature sensor channel.
- Parameters
-
NewState,: | new state of the temperature sensor input channel. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void ADC_VbatCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the Vbat channel.
- Parameters
-
NewState,: | new state of the Vbat input channel. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void ADC_VrefintCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the Vrefint channel.
- Parameters
-
NewState,: | new state of the Vref input channel. This parameter can be: ENABLE or DISABLE. |
- Return values
-