/* Enables or disables the specified ADC DMA request.  */
void ADC_DMACmd(ADC_TypeDef *adc, FunctionalState state)
/* Enables or disables the specified ADC DMA request.  */
void ADC_DMACmd(ADC_TypeDef *adc, FunctionalState state)
{
    (state) ? (adc->ADCR |= ADC_CR_DMAEN) : (adc->ADCR &= ~ADC_CR_DMAEN);
}