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