Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHost_DISCO-F746NG by
Diff: USBHost/USBHost.h
- Revision:
- 18:61554f238584
- Parent:
- 12:b91fdea8c0a7
- Child:
- 24:5396b6a93262
--- 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;