Usb read

Dependencies:   FATFileSystem

Fork of F401RE-USBHost by Norimasa Okamoto

USBHost/USBEndpoint.h

Committer:
va009039
Date:
2014-01-25
Revision:
3:a3872f7593e2

File content as of revision 3:a3872f7593e2:

#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;
};