Functions
Temperature Sensor, Vrefint (Voltage Reference internal)

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

Collaboration diagram for Temperature Sensor, Vrefint (Voltage Reference internal):

Functions

void ADC_TempSensorCmd (ADC_TypeDef *ADCx, FunctionalState NewState)
 Enables or disables the temperature sensor channel. More...
 
void ADC_TempSensorVrefintCmd (FunctionalState NewState)
 Enables or disables the temperature sensor and Vrefint channels. More...
 
void ADC_VBATCmd (FunctionalState NewState)
 Enables or disables the VBAT (Voltage Battery) channel. More...
 
void ADC_VbatCmd (ADC_TypeDef *ADCx, FunctionalState NewState)
 Enables or disables the Vbat channel. More...
 
void ADC_VrefintCmd (ADC_TypeDef *ADCx, FunctionalState NewState)
 Enables or disables the Vrefint channel. More...
 

Detailed Description

Temperature Sensor, Vrefint and VBAT management functions.

Vbat, Temperature Sensor & Vrefint (Internal Reference Voltage) management function.

and VBAT (Voltage BATtery) management functions

 ===============================================================================
      ##### Temperature Sensor, Vrefint and VBAT management functions #####
 ===============================================================================  
    [..] This section provides functions allowing to enable/ disable the internal 
         connections between the ADC and the Temperature Sensor, the Vrefint and 
         the Vbat sources.
     
    [..] A typical configuration to get the Temperature sensor and Vrefint channels 
         voltages is done following these steps :
      (#) Enable the internal connection of Temperature sensor and Vrefint sources 
          with the ADC channels using ADC_TempSensorVrefintCmd() function. 
      (#) Select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint using 
          ADC_RegularChannelConfig() or  ADC_InjectedChannelConfig() functions 
      (#) Get the voltage values, using ADC_GetConversionValue() or  
          ADC_GetInjectedConversionValue().

    [..] A typical configuration to get the VBAT channel voltage is done following 
         these steps :
      (#) Enable the internal connection of VBAT source with the ADC channel using 
          ADC_VBATCmd() function. 
      (#) Select the ADC_Channel_Vbat using ADC_RegularChannelConfig() or  
          ADC_InjectedChannelConfig() functions 
      (#) Get the voltage value, using ADC_GetConversionValue() or  
          ADC_GetInjectedConversionValue().
 ====================================================================================================
  ##### Temperature Sensor - Vrefint (Internal Reference Voltage) and VBAT management functions #####
 ====================================================================================================  

  [..] This section provides a function allowing to enable/ disable the internal 
  connections between the ADC and the Vbat/2, Temperature Sensor and the Vrefint source.

  [..] A typical configuration to get the Temperature sensor and Vrefint channels 
  voltages is done following these steps :
   (#) Enable the internal connection of Vbat/2, Temperature sensor and Vrefint sources 
       with the ADC channels using:
      (++) ADC_TempSensorCmd()  
      (++) ADC_VrefintCmd() 
      (++) ADC_VbatCmd()  

   (#) select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint and/or ADC_Channel_Vbat using 
      (++) ADC_RegularChannelConfig() or  
      (++) ADC_InjectedInit() functions 

   (#) Get the voltage values, using:
      (++) ADC_GetConversionValue() or  
      (++) ADC_GetInjectedConversionValue().

Function Documentation

void ADC_TempSensorCmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the temperature sensor channel.

Parameters
ADCxwhere x can be 1 to select the ADC peripheral.
NewStatenew state of the temperature sensor. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 952 of file stm32f30x_adc.c.

void ADC_TempSensorVrefintCmd ( FunctionalState  NewState)

Enables or disables the temperature sensor and Vrefint channels.

Parameters
NewStatenew state of the temperature sensor and Vrefint channels. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 589 of file stm32f4xx_adc.c.

void ADC_VBATCmd ( FunctionalState  NewState)

Enables or disables the VBAT (Voltage Battery) channel.

Parameters
NewStatenew state of the VBAT channel. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 611 of file stm32f4xx_adc.c.

void ADC_VbatCmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Vbat channel.

Parameters
ADCxwhere x can be 1 to select the ADC peripheral.
NewStatenew state of the Vbat. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1024 of file stm32f30x_adc.c.

void ADC_VrefintCmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Vrefint channel.

Parameters
ADCxwhere x can be 1 or 4 to select the ADC peripheral.
NewStatenew state of the Vrefint. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 979 of file stm32f30x_adc.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Fri Oct 9 2020 03:17:19