/* Unregisters a USB host pipe callback. 
Unregisters an asynchronous callback implemented by the user. Removing it from the internal callback registration table. */
enum status_code usb_host_pipe_unregister_callback(struct usb_module *module_inst, uint8_t pipe_num, enum usb_host_pipe_callback callback_type)
/* Unregisters a USB host pipe callback. 
Unregisters an asynchronous callback implemented by the user. Removing it from the internal callback registration table. */
enum status_code usb_host_pipe_unregister_callback(struct usb_module *module_inst, uint8_t pipe_num, enum usb_host_pipe_callback callback_type)
{
	Assert(module_inst);
	Assert(pipe_num < USB_PIPE_NUM);
	module_inst->host_pipe_callback[pipe_num][callback_type] = NULL;
	module_inst->host_pipe_registered_callback_mask[pipe_num] &= ~(1 << callback_type);
	return STATUS_OK;
}