USB Host Library for Sprint Dongles

Fork of USBHostWANDongleSprint by mbed official

Revision:
9:2a7b7333245f
Parent:
8:65cd51339647
--- a/USB3GModule/WANDongleInitializer.h	Wed Oct 24 15:26:55 2012 +0000
+++ b/USB3GModule/WANDongleInitializer.h	Mon Dec 10 18:18:35 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