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.
Dependents: F401RE-USBHostMIDI_RecieveExample
Fork of F401RE-USBHost by
Diff: USBHost/USBEndpoint.h
- Revision:
 - 19:61554f238584
 - Parent:
 - 16:981c3104f6c0
 
--- a/USBHost/USBEndpoint.h	Mon Jun 23 20:48:53 2014 +0900
+++ b/USBHost/USBEndpoint.h	Tue Jul 01 18:33:31 2014 +0900
@@ -52,6 +52,11 @@
         data01_toggle = DATA0;
     }
 
+    void ohci_init(uint8_t frameCount, uint8_t queueLimit) {
+        ohci.frameCount = frameCount;
+        ohci.queueLimit = queueLimit;
+    }
+
     /**
      *  Attach a member function to call when a transfer is finished
      *
@@ -112,6 +117,10 @@
     template<class T>
     T getHALData() { return reinterpret_cast<T>(pData); }
 
+    struct {
+        uint8_t queueLimit;
+        uint8_t frameCount; // 1-8
+    } ohci;
 private:
     USBEndpoint(){}
     ENDPOINT_TYPE type;
    