#include <usb_core.h>
#include <usb_hub.h>
#include <usb_host.h>
+#include "usb_proto.h"
typedef struct sUSBHost tUSBHost;
typedef struct sUSBDevice tUSBDevice;
tUSBInterface *Interface;
int EndpointIdx; // Interface endpoint index
int EndpointNum; // Device endpoint num
+ void *EndpointHandle;
int PollingPeriod; // In 1ms intervals
int MaxPacketSize; // In bytes
tUSBDriver *Driver;
void *Data;
+
+ struct sDescriptor_Interface IfaceDesc;
int nEndpoints;
tUSBEndpoint Endpoints[];
tUSBHost *Host;
int Address;
+ void *EndpointHandles[16];
+
+ struct sDescriptor_Device DevDesc;
+
int nInterfaces;
tUSBInterface *Interfaces[];
};