1#ifndef __VSF_LINUX_USB_CH9_H__
2#define __VSF_LINUX_USB_CH9_H__
10#define USB_ENDPOINT_DIR_MASK USB_DIR_MASK
11#define USB_ENDPOINT_MAXP_MASK 0x07FF
12#define USB_ENDPOINT_NUMBER_MASK 0x7F
14#define USB_STATUS_TYPE_STANDARD 0
15#define USB_STATUS_TYPE_PTM 1
17#define usb_device_speed usb_device_speed_t
18#define usb_descriptor_header usb_descriptor_header_t
19#define usb_device_descriptor usb_device_desc_t
20#define usb_config_descriptor usb_config_desc_t
21#define usb_interface_descriptor usb_interface_desc_t
22#define usb_endpoint_descriptor usb_endpoint_desc_t
59 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd);
63 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd);
67 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd);
71 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd);
75 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd);
79 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd);
#define usb_endpoint_descriptor
Definition ch9.h:22
#define USB_ENDPOINT_NUMBER_MASK
Definition ch9.h:12
#define USB_ENDPOINT_DIR_MASK
Definition ch9.h:10
#define USB_ENDPOINT_MAXP_MASK
Definition ch9.h:11
@ USB_ENDPOINT_XFERTYPE_MASK
Definition usb_common.h:285
@ USB_ENDPOINT_XFER_BULK
Definition usb_common.h:288
@ USB_ENDPOINT_XFER_INT
Definition usb_common.h:289
@ USB_ENDPOINT_XFER_ISOC
Definition usb_common.h:287
@ USB_ENDPOINT_XFER_CONTROL
Definition usb_common.h:286
@ USB_DIR_OUT
Definition usb_common.h:81
@ USB_DIR_IN
Definition usb_common.h:82
#define le16_to_cpu
Definition vsf_arch_abstraction.h:174