/* Enables or disables the selected DAC channel software trigger.  */
void DAC_SoftwareTriggerCmd(emDACCH_TypeDef channel, FunctionalState state)
/* Enables or disables the selected DAC channel software trigger.  */
void DAC_SoftwareTriggerCmd(emDACCH_TypeDef channel, FunctionalState state)
{
    (state) ? (DAC->SWTRIGR |= (DAC_SWTRIGR_SWTRIG1 << (channel >> 4)))
    : (DAC->SWTRIGR &= ~(DAC_SWTRIGR_SWTRIG1 << (channel >> 4)));
}