/* Enables or disables the specified DAC channel DMA request.  */
void DAC_DmaEnable(uint32_t DAC_Channel, FunctionalState Cmd)
/* Enables or disables the specified DAC channel DMA request.  */
void DAC_DmaEnable(uint32_t DAC_Channel, FunctionalState Cmd)
{
    assert_param(IS_DAC_CHANNEL(DAC_Channel));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        DAC->CTRL |= (DAC_CTRL_DMA1EN << DAC_Channel);
    }
    else
    {
        DAC->CTRL &= ~(DAC_CTRL_DMA1EN << DAC_Channel);
    }
}