Simple USBHost library for STM32F746NG Discovery board. Only either the Fastspeed or the Highspeed port can be used( not both together)
Dependents: DISCO-F746NG_USB_Host
Fork of KL46Z-USBHost 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;