/* Set the specified data holding register value for dual channel DAC.  */
void DAC_SetDualChannelData(uint32_t DAC_Align, uint16_t Data2, uint16_t Data1)
/* Set the specified data holding register value for dual channel DAC.  */
void DAC_SetDualChannelData(uint32_t DAC_Align, uint16_t Data2, uint16_t Data1)
{
    uint32_t data = 0;
    assert_param(IS_DAC_ALIGN(DAC_Align));
    assert_param(IS_DAC_DATA(Data1));
    assert_param(IS_DAC_DATA(Data2));
    if (DAC_Align == DAC_Align_8b_R)
    {
        data = ((uint32_t)Data2 << 8) | Data1; 
    }
    else
    {
        data = ((uint32_t)Data2 << 16) | Data1;
    }
    *((__IO uint32_t *)(DAC_BASE + DHR12RD_Offset + DAC_Align)) = data;
}