/* Enables or disables the discontinuous mode for injected group channel for the specified ADC.  */
void ADC_EnableInjectedDiscMode(ADC_Module *ADCx, FunctionalState Cmd)
/* Enables or disables the discontinuous mode for injected group channel for the specified ADC.  */
void ADC_EnableInjectedDiscMode(ADC_Module *ADCx, FunctionalState Cmd)
{
    assert_param(IsAdcModule(ADCx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        ADCx->CTRL1 |= CTRL1_INJ_DISC_EN_SET;
    }
    else
    {
        ADCx->CTRL1 &= CTRL1_INJ_DISC_EN_RESET;
    }
}