/* Enables asynchronous callback generation for a given channel and type. 
Enables asynchronous callbacks for a given logical DAC channel and type. This must be called before a DAC channel will generate callback events. */
enum status_code dac_chan_enable_callback(struct dac_module *const module_inst, const enum dac_channel channel, const enum dac_callback type)
/* Enables asynchronous callback generation for a given channel and type. 
Enables asynchronous callbacks for a given logical DAC channel and type. This must be called before a DAC channel will generate callback events. */
enum status_code dac_chan_enable_callback(struct dac_module *const module_inst, const enum dac_channel channel, const enum dac_callback type)
{
	Assert(module_inst);
	if (module_inst->start_on_event[channel] == false) {
		return STATUS_ERR_UNSUPPORTED_DEV;
	}
	module_inst->callback_enable[channel][type] = true;
	return STATUS_OK;
}