28 class PluggableUSBModule {
30 PluggableUSBModule(uint8_t numEps, uint8_t numIfs, uint8_t *epType) :
31 numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
36 virtual int getInterface(uint8_t* interfaceCount) = 0;
37 virtual int getDescriptor(USBSetup&
setup) = 0;
38 virtual uint8_t getShortName(
char *
name) { name[0] =
'A'+pluggedInterface;
return 1; }
40 uint8_t pluggedInterface;
41 uint8_t pluggedEndpoint;
43 const uint8_t numEndpoints;
44 const uint8_t numInterfaces;
45 const uint8_t *endpointType;
47 PluggableUSBModule *next = NULL;
49 friend class PluggableUSB_;
55 bool plug(PluggableUSBModule *node);
56 int getInterface(uint8_t* interfaceCount);
57 int getDescriptor(USBSetup&
setup);
59 void getShortName(
char *iSerialNum);
64 PluggableUSBModule* rootNode;
70 PluggableUSB_& PluggableUSB();
GLuint const GLchar * name