/* Enables or disables the analog watchdog on single/all regular or injected channels.  */
void ADC_ConfigAnalogWatchdogWorkChannelType(ADC_Module *ADCx, uint32_t ADC_AnalogWatchdog)
/* Enables or disables the analog watchdog on single/all regular or injected channels.  */
void ADC_ConfigAnalogWatchdogWorkChannelType(ADC_Module *ADCx, uint32_t ADC_AnalogWatchdog)
{
    uint32_t tmpregister = 0;
    assert_param(IsAdcModule(ADCx));
    assert_param(IsAdcAnalogWatchdog(ADC_AnalogWatchdog));
    tmpregister = ADCx->CTRL1;
    tmpregister &= CTRL1_AWDG_MODE_RESET;
    tmpregister |= ADC_AnalogWatchdog;
    ADCx->CTRL1 = tmpregister;
}