/* Enables the specified DAC channel DMA request. When enabled DMA1 is generated when an external trigger (EINT Line9, TMR2, TMR3, TMR6 or TMR15 but not a software trigger) occurs.  */
void DAC_EnableDMA(DAC_CHANNEL_T channel)
/* Enables the specified DAC channel DMA request. When enabled DMA1 is generated when an external trigger (EINT Line9, TMR2, TMR3, TMR6 or TMR15 but not a software trigger) occurs.  */
void DAC_EnableDMA(DAC_CHANNEL_T channel)
{
    if (channel == DAC_CHANNEL_1)
    {
        DAC->CTRL_B.DMAENCH1 = SET;
    }
    else
    {
        DAC->CTRL_B.DMAENCH2 = SET;
    }
}