/* Enables or disables the discontinuous mode on regular group channel for the specified ADC.  */
void ADC_DiscModeCmd(ADC_TypeDef *ADCx, FunctionalState NewState)
/* Enables or disables the discontinuous mode on regular group channel for the specified ADC.  */
void ADC_DiscModeCmd(ADC_TypeDef *ADCx, FunctionalState NewState)
{
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    ADCx->CFGR |= ADC_CFGR_DISCEN;
  }
  else
  {
    ADCx->CFGR &= ~(uint32_t)(ADC_CFGR_DISCEN);
  }
}