/* Unregisters a USB device endpoint callback. 
Unregisters an callback implemented by the user. Removing it from the internal callback registration table. */
enum status_code usb_device_endpoint_unregister_callback(struct usb_module *module_inst, uint8_t ep_num, enum usb_device_endpoint_callback callback_type)
/* Unregisters a USB device endpoint callback. 
Unregisters an callback implemented by the user. Removing it from the internal callback registration table. */
enum status_code usb_device_endpoint_unregister_callback(struct usb_module *module_inst, uint8_t ep_num, enum usb_device_endpoint_callback callback_type)
{
	Assert(module_inst);
	Assert(ep_num < USB_EPT_NUM);
	module_inst->device_endpoint_callback[ep_num][callback_type] = NULL;
	module_inst->device_endpoint_registered_callback_mask[ep_num] &= ~_usb_endpoint_irq_bits[callback_type];
	return STATUS_OK;
}