Adaptation of the official mbed USBHost repository to work with the LPC4088 Display Module
Dependents: DMSupport DMSupport DMSupport DMSupport
Fork of DM_USBHost by
Diff: USBHost3GModule/WANDongle.h
- Revision:
- 24:868cbfe611a7
- Parent:
- 17:c7b1b8451598
diff -r 759ec18ee1a7 -r 868cbfe611a7 USBHost3GModule/WANDongle.h --- a/USBHost3GModule/WANDongle.h Fri Mar 07 16:00:46 2014 +0000 +++ b/USBHost3GModule/WANDongle.h Tue Jun 03 11:30:38 2014 +0100 @@ -58,47 +58,47 @@ * @return true if a serial device is connected */ bool connected(); - + /* * Try to connect device * * * @return true if connection was successful */ bool tryConnect(); - + /* * Disconnect device * * * @return true if disconnection was successful */ bool disconnect(); - + int getDongleType(); - + IUSBHostSerial& getSerial(int index); int getSerialCount(); bool addInitializer(WANDongleInitializer* pInitializer); //From IUSBEnumerator - + 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 - + protected: USBHost * host; USBDeviceConnected * dev; bool dev_connected; - + WANDongleInitializer* m_pInitializer; void init(); - + WANDongleSerialPort m_serial[WANDONGLE_MAX_SERIAL_PORTS]; int m_serialCount; - + int m_totalInitializers; WANDongleInitializer* m_Initializers[WANDONGLE_MAX_INITIALIZERS]; };