/* Clears a module status flag. 
Clears the given status flag of the module. */
void dac_clear_status(struct dac_module *const module_inst, uint32_t status_flags)
/* Clears a module status flag. 
Clears the given status flag of the module. */
void dac_clear_status(struct dac_module *const module_inst, uint32_t status_flags)
{
	Assert(module_inst);
	Assert(module_inst->hw);
	Dac *const dac_module = module_inst->hw;
	uint32_t intflags = 0;
	if (status_flags & DAC_STATUS_CHANNEL_0_EMPTY) {
		intflags |= DAC_INTFLAG_EMPTY0;
	}
	if (status_flags & DAC_STATUS_CHANNEL_1_EMPTY) {
		intflags |= DAC_INTFLAG_EMPTY1;
	}
	if (status_flags & DAC_STATUS_CHANNEL_0_UNDERRUN) {
		intflags |= DAC_INTFLAG_UNDERRUN0;
	}
	if (status_flags & DAC_STATUS_CHANNEL_1_UNDERRUN) {
		intflags |= DAC_INTFLAG_UNDERRUN1;
	}
	dac_module->INTFLAG.reg = intflags;
}