/* Enables USB device callback generation for a given type. 
Enables asynchronous callbacks for a given logical type. This must be called before USB device generate callback events. */
enum status_code usb_device_enable_callback(struct usb_module *module_inst, enum usb_device_callback callback_type)
/* Enables USB device callback generation for a given type. 
Enables asynchronous callbacks for a given logical type. This must be called before USB device generate callback events. */
enum status_code usb_device_enable_callback(struct usb_module *module_inst, enum usb_device_callback callback_type)
{
	Assert(module_inst);
	Assert(module_inst->hw);
	module_inst->hw->DEVICE.INTFLAG.reg = _usb_device_irq_bits[callback_type];
	module_inst->device_enabled_callback_mask |= _usb_device_irq_bits[callback_type];
	module_inst->hw->DEVICE.INTENSET.reg = _usb_device_irq_bits[callback_type];
	return STATUS_OK;
}