/* Registers a USB host pipe callback. 
Registers a callback function which is implemented by the user. */
enum status_code usb_host_pipe_register_callback(struct usb_module *module_inst, uint8_t pipe_num, enum usb_host_pipe_callback callback_type, usb_host_pipe_callback_t callback_func)
/* Registers a USB host pipe callback. 
Registers a callback function which is implemented by the user. */
enum status_code usb_host_pipe_register_callback(struct usb_module *module_inst, uint8_t pipe_num, enum usb_host_pipe_callback callback_type, usb_host_pipe_callback_t callback_func)
{
	Assert(module_inst);
	Assert(pipe_num < USB_PIPE_NUM);
	Assert(callback_func);
	module_inst->host_pipe_callback[pipe_num][callback_type] = callback_func;
	module_inst->host_pipe_registered_callback_mask[pipe_num] |= (1 << callback_type);
	return STATUS_OK;
}