Usb read
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
USBHost/USBEndpoint.h@3:a3872f7593e2, 2014-01-25 (annotated)
- Committer:
- va009039
- Date:
- Sat Jan 25 12:51:44 2014 +0000
- Revision:
- 3:a3872f7593e2
fix max packet size
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 3:a3872f7593e2 | 1 | #pragma once |
va009039 | 3:a3872f7593e2 | 2 | #include "USBHostTypes.h" |
va009039 | 3:a3872f7593e2 | 3 | |
va009039 | 3:a3872f7593e2 | 4 | class USBEndpoint { |
va009039 | 3:a3872f7593e2 | 5 | public: |
va009039 | 3:a3872f7593e2 | 6 | void setState(uint8_t st){}; // dummy |
va009039 | 3:a3872f7593e2 | 7 | void setSize(uint32_t size) { MaxPacketSize = size; } |
va009039 | 3:a3872f7593e2 | 8 | void setAddress(uint8_t addr) { address = addr; } |
va009039 | 3:a3872f7593e2 | 9 | uint8_t getAddress(){ return address; }; |
va009039 | 3:a3872f7593e2 | 10 | uint32_t getSize() { return MaxPacketSize; } |
va009039 | 3:a3872f7593e2 | 11 | |
va009039 | 3:a3872f7593e2 | 12 | private: |
va009039 | 3:a3872f7593e2 | 13 | uint8_t address; |
va009039 | 3:a3872f7593e2 | 14 | int MaxPacketSize; |
va009039 | 3:a3872f7593e2 | 15 | }; |