/* Registers a USB device callback. 
Registers a callback function which is implemented by the user. */
enum status_code usb_device_register_callback(struct usb_module *module_inst, enum usb_device_callback callback_type, usb_device_callback_t callback_func)
/* Registers a USB device callback. 
Registers a callback function which is implemented by the user. */
enum status_code usb_device_register_callback(struct usb_module *module_inst, enum usb_device_callback callback_type, usb_device_callback_t callback_func)
{
	Assert(module_inst);
	Assert(callback_func);
	module_inst->device_callback[callback_type] = callback_func;
	module_inst->device_registered_callback_mask |= _usb_device_irq_bits[callback_type];
	return STATUS_OK;
}