/* Registers a USB host callback. 
Registers a callback function which is implemented by the user. */
enum status_code usb_host_register_callback(struct usb_module *module_inst, enum usb_host_callback callback_type, usb_host_callback_t callback_func)
/* Registers a USB host callback. 
Registers a callback function which is implemented by the user. */
enum status_code usb_host_register_callback(struct usb_module *module_inst, enum usb_host_callback callback_type, usb_host_callback_t callback_func)
{
	Assert(module_inst);
	Assert(callback_func);
	module_inst->host_callback[callback_type] = callback_func;
	module_inst->host_registered_callback_mask |= (1 << callback_type);
	return STATUS_OK;
}