00001
00044 #ifndef USB_USBTEST_H_INCLUDED
00045 #define USB_USBTEST_H_INCLUDED
00046
00047 enum udctest_reqid {
00048 USBTEST_REQ_INIT_DESC = 0x00,
00049 USBTEST_REQ_GET_DESC = 0x01,
00050 USBTEST_REQ_INVALID = 0xff,
00051 };
00052
00053 enum udctest_descriptor_type {
00054 USBTEST_DT_SIZE2 = 0x01,
00055 USBTEST_DT_SIZE63 = 0x02,
00056 USBTEST_DT_SIZE64 = 0x03,
00057 USBTEST_DT_SIZE65 = 0x04,
00058 USBTEST_DT_SIZE127 = 0x05,
00059 USBTEST_DT_SIZE128 = 0x06,
00060 USBTEST_DT_SIZE129 = 0x07,
00061 };
00062
00063 struct udctest_descriptor {
00064 uint8_t bLength;
00065 uint8_t bDescriptorType;
00066 uint8_t data[0];
00067 } __packed;
00068
00069 extern struct usb_func_iface *udctest_init(void);
00070
00071 #endif