/* Enables or disables the temperature sensor and Vrefint channel.  */
void ADC_EnableTempSensorVrefint(FunctionalState Cmd)
/* Enables or disables the temperature sensor and Vrefint channel.  */
void ADC_EnableTempSensorVrefint(FunctionalState Cmd)
{
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        ADC->CTRL2 |= CTRL2_TSVREFE_SET;
    }
    else
    {
        ADC->CTRL2 &= CTRL2_TSVREFE_RESET;
    }
}