STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Temperature Sensor, Vrefint and Vbat management functions

Temperature Sensor, Vrefint and Vbat management functions. More...

Functions

void ADC_TempSensorCmd (FunctionalState NewState)
 Enables or disables the temperature sensor channel. More...
 
void ADC_VrefintCmd (FunctionalState NewState)
 Enables or disables the Vrefint channel. More...
 
void ADC_VbatCmd (FunctionalState NewState)
 Enables or disables the Vbat channel. More...
 

Detailed Description

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

Function Documentation

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
None
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
None
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
None