USB lib Joerg

Fork of USBHost_DISCO-F746NG by Dieter Graef

Revision:
3:a3872f7593e2
diff -r 0cdac6bcc534 -r a3872f7593e2 USBHost/USBEndpoint.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBHost/USBEndpoint.h	Sat Jan 25 12:51:44 2014 +0000
@@ -0,0 +1,15 @@
+#pragma once
+#include "USBHostTypes.h"
+
+class USBEndpoint {
+public:
+    void setState(uint8_t st){}; // dummy
+    void setSize(uint32_t size) { MaxPacketSize = size; }
+    void setAddress(uint8_t addr) { address = addr; }
+    uint8_t getAddress(){ return address; };
+    uint32_t getSize() { return MaxPacketSize; }
+
+private:
+    uint8_t address;
+    int MaxPacketSize;
+};