/* Returns the last data output value of the selected DAC channel.  */
uint16_t DAC_ReadDataOutputValue(DAC_CHANNEL_T channel)
/* Returns the last data output value of the selected DAC channel.  */
uint16_t DAC_ReadDataOutputValue(DAC_CHANNEL_T channel)
{
    uint16_t data;
    if(channel == DAC_CHANNEL_1)
    {
        data = DAC->DATAOCH1_B.DATA;
    }
    else
    {
        data = DAC->DATAOCH2_B.DATA;
    }
    return data;
}