USB Host Library for Sprint Dongles
Fork of USBHostWANDongleSprint by
Diff: USB3GModule/WANDongleInitializer.h
- Revision:
- 8:65cd51339647
- Parent:
- 4:cd9864d1db52
--- a/USB3GModule/WANDongleInitializer.h Wed Oct 10 08:29:36 2012 +0000 +++ b/USB3GModule/WANDongleInitializer.h Fri Nov 30 13:08:13 2012 +0000 @@ -30,6 +30,7 @@ { WAN_DONGLE_TYPE_UNKNOWN = -1, WAN_DONGLE_TYPE_SPRINT598U = 10, + WAN_DONGLE_TYPE_SPRINTMC5728V = 11, }; class WANDongleInitializer : public IUSBEnumerator @@ -94,4 +95,35 @@ int m_currentEndpoint; }; +class SprintMC5728VInitializer : public WANDongleInitializer +{ +public: + SprintMC5728VInitializer(USBHost* pHost); + + virtual uint16_t getMSDVid(); + virtual uint16_t getMSDPid(); + + virtual uint16_t getSerialVid(); + virtual uint16_t getSerialPid(); + + virtual bool switchMode(USBDeviceConnected* pDev); + + virtual USBEndpoint* getEp(USBDeviceConnected* pDev, int serialPortNumber, bool tx); + + virtual int getSerialPortCount(); + + virtual void setVidPid(uint16_t vid, uint16_t pid); + + virtual bool parseInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol); //Must return true if the interface should be parsed + + virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir); //Must return true if the endpoint will be used + + virtual WAN_DONGLE_TYPE getType(); + +private: + + int m_currentSerialIntf; + int m_currentEndpoint; +}; + #endif