/* Endpoint Transfer Complete callback function, to do the next transfer depends on the direction(IN or OUT)  */
static void udd_ep_transfer_process(struct usb_module *module_inst, void *pointer)
/* Endpoint Transfer Complete callback function, to do the next transfer depends on the direction(IN or OUT)  */
static void udd_ep_transfer_process(struct usb_module *module_inst, void *pointer)
{
	struct usb_endpoint_callback_parameter *ep_callback_para = (struct usb_endpoint_callback_parameter*)pointer;
	udd_ep_id_t ep = ep_callback_para->endpoint_address;
	if (ep & USB_EP_DIR_IN) {
		udd_ep_trans_in_next(pointer);
	} else {
		udd_ep_trans_out_next(pointer);
	}
}