/* Enables or disables the selected ADC software start conversion .  */
void ADC_EnableSoftwareStartConv(ADC_Module *ADCx, FunctionalState Cmd)
/* Enables or disables the selected ADC software start conversion .  */
void ADC_EnableSoftwareStartConv(ADC_Module *ADCx, FunctionalState Cmd)
{
    assert_param(IsAdcModule(ADCx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        ADCx->CTRL2 |= CTRL2_EXT_TRIG_SWSTART_SET;
    }
    else
    {
        ADCx->CTRL2 &= CTRL2_EXT_TRIG_SWSTART_RESET;
    }
}