/* Enables or disables the selected DAC channel wave generation.  */
void DAC_WaveGenerationCmd(uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState)
/* Enables or disables the selected DAC channel wave generation.  */
void DAC_WaveGenerationCmd(uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState)
{
  assert_param(IS_DAC_CHANNEL(DAC_Channel));
  assert_param(IS_DAC_WAVE(DAC_Wave)); 
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    DAC->CR |= DAC_Wave << DAC_Channel;
  }
  else
  {
    DAC->CR &= ~(DAC_Wave << DAC_Channel);
  }
}