Usb read
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
Diff: USBHost/USBEndpoint.h
- Revision:
- 18: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;