USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
Diff: USBHost/USBHost.h
- Revision:
- 18:61554f238584
- Parent:
- 12:b91fdea8c0a7
--- a/USBHost/USBHost.h Mon Jun 23 20:48:53 2014 +0900 +++ b/USBHost/USBHost.h Tue Jul 01 18:33:31 2014 +0900 @@ -163,10 +163,12 @@ // KL46Z-USBHost extensions int interruptReadNB(USBEndpoint* ep, uint8_t* data, int size); - int interruptWriteNB(USBEndpoint* ep, const uint8_t* data, int size); int bulkReadNB(USBEndpoint*ep, uint8_t* data, int size); - int bulkWriteNB(USBEndpoint*ep, const uint8_t* data, int size); int isochronousReadNB(USBEndpoint*ep, uint8_t* data, int size); + + /** + * non-blocking processing + */ static void poll(); private: @@ -176,10 +178,6 @@ void root_enumeration(USBDeviceConnected* dev); void parseConfDescr(USBDeviceConnected* dev, uint8_t* conf_descr, uint32_t len, IUSBEnumerator* pEnumerator); myvector<USBDeviceConnected*>DeviceLists; - - int ControlRead(USBDeviceConnected* dev, SETUP_PACKET* setup, uint8_t* data, int size); - int ControlWrite(USBDeviceConnected* dev, SETUP_PACKET* setup, uint8_t* data = NULL, int size = 0); - int bulkReadBLOCK(USBEndpoint*ep, uint8_t* data, int size, int timeout_ms); void task(); EndpointQueue ep_queue;