/* Enables or disables the temperature sensor and Vrefint channel.  */
void exADC_TempSensorVrefintCmd(u32 chs, FunctionalState state)
/* Enables or disables the temperature sensor and Vrefint channel.  */
void exADC_TempSensorVrefintCmd(u32 chs, FunctionalState state)
{
    if (chs & ADC_CHSR_CHT) {
        (state) ? (ADC1->ADCFG |=  ADC_CFGR_TEN)
        : (ADC1->ADCFG &= ~ADC_CFGR_TEN);
    }
    else if (chs & ADC_CHSR_CHV) {
        (state) ? (ADC1->ADCFG |=  ADC_CFGR_VEN)
        : (ADC1->ADCFG &= ~ADC_CFGR_VEN);
    }
}