29class PluggableUSBModule {
31 PluggableUSBModule(uint8_t numEps, uint8_t numIfs,
unsigned int *epType) :
32 numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
36 virtual bool setup(USBSetup& setup) = 0;
37 virtual int getInterface(uint8_t* interfaceCount) = 0;
38 virtual int getDescriptor(USBSetup& setup) = 0;
39 virtual uint8_t getShortName(
char *name) { name[0] =
'A'+pluggedInterface;
return 1; }
41 uint8_t pluggedInterface;
42 uint8_t pluggedEndpoint;
44 const uint8_t numEndpoints;
45 const uint8_t numInterfaces;
46 const unsigned int *endpointType;
48 PluggableUSBModule *next = NULL;
50 friend class PluggableUSB_;