/* Enables or disables simultaneously the two DAC channels software triggers.  */
void DAC_DualSoftwareTriggerCmd(FunctionalState state)
/* Enables or disables simultaneously the two DAC channels software triggers.  */
void DAC_DualSoftwareTriggerCmd(FunctionalState state)
{
    (state) ? (DAC->SWTRIGR |= (DAC_SWTRIGR_SWTRIG1 | DAC_SWTRIGR_SWTRIG2))
    : (DAC->SWTRIGR &= ~(DAC_SWTRIGR_SWTRIG1 | DAC_SWTRIGR_SWTRIG2));
}