/* Enables or disables the specified DAC channel DMA request. When enabled DMA1 is generated when an external trigger (EXTI Line9, TIM2, TIM3, TIM6 or TIM15 but not a software trigger) occurs.  */
void DAC_DMACmd(uint32_t DAC_Channel, FunctionalState NewState)
/* Enables or disables the specified DAC channel DMA request. When enabled DMA1 is generated when an external trigger (EXTI Line9, TIM2, TIM3, TIM6 or TIM15 but not a software trigger) occurs.  */
void DAC_DMACmd(uint32_t DAC_Channel, FunctionalState NewState)
{
  assert_param(IS_DAC_CHANNEL(DAC_Channel));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    DAC->CR |= (DAC_CR_DMAEN1 << DAC_Channel);
  }
  else
  {
    DAC->CR &= (~(DAC_CR_DMAEN1 << DAC_Channel));
  }
}