diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-30 19:04:01 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-02 11:59:23 +0200 |
commit | c0f9296ae5bae083bcc793de1ddd7c7c79ad4236 (patch) | |
tree | 77aa6bea6eb88addb9da580611074a255b220f11 /cores/arduino/PluggableUSB.h | |
parent | dbaec17c03fb846da28aaf249493fc2b872ca66a (diff) |
[PUSB] No more static fields in PluggableUSB class
Diffstat (limited to 'cores/arduino/PluggableUSB.h')
-rw-r--r-- | cores/arduino/PluggableUSB.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h index 0f776c0..93ee15c 100644 --- a/cores/arduino/PluggableUSB.h +++ b/cores/arduino/PluggableUSB.h @@ -54,10 +54,17 @@ public: class PluggableUSB_ { public: - static bool plug(PUSBListNode *node); - static int getInterface(uint8_t* interfaceNum); - static int getDescriptor(int8_t t); - static bool setup(USBSetup& setup, uint8_t i); + PluggableUSB_(); + bool plug(PUSBListNode *node); + int getInterface(uint8_t* interfaceNum); + int getDescriptor(int8_t t); + bool setup(USBSetup& setup, uint8_t i); + +private: + uint8_t lastIf; + uint8_t lastEp; + uint8_t modulesCount; + PUSBListNode* rootNode; }; extern PluggableUSB_ PluggableUSB; |