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:
- 6:03ef38d6e1ba
- Parent:
- 5:10bfc10afcc8
- Child:
- 7:9a20482c9a7a
diff -r 10bfc10afcc8 -r 03ef38d6e1ba USBHost/USBEndpoint.h
--- a/USBHost/USBEndpoint.h Mon Jan 27 11:00:28 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-#pragma once
-#include "USBHostTypes.h"
-
-class USBEndpoint {
-public:
- USBEndpoint() : data01_toggle(DATA0),address(0),MaxPacketSize(8) {}
- void setState(uint8_t st){}; // dummy
- void setSize(int size) { MaxPacketSize = size; }
- void setAddress(uint8_t addr) { address = addr; }
- void setData01(uint8_t data01) { data01_toggle = data01; }
- uint8_t getAddress(){ return address; };
- int getSize() { return MaxPacketSize; }
- uint8_t getData01() { return data01_toggle; }
- void toggleData01() {
- data01_toggle = (data01_toggle == DATA0) ? DATA1 : DATA0;
- }
-
-private:
- uint8_t data01_toggle; // DATA0,DATA1
- uint8_t address;
- int MaxPacketSize;
-};
