1 #ifndef ION_DEVICE_USB_DEVICE_H 2 #define ION_DEVICE_USB_DEVICE_H 19 m_ep0(this, interface),
20 m_resetOnDisconnect(
false)
47 enum class TransactionType {
53 void setAddress(
uint8_t address);
55 bool getDescriptor(SetupPacket * request,
uint8_t * transferBuffer,
uint16_t * transferBufferLength,
uint16_t transferBufferMaxLength);
56 bool getConfiguration(
uint8_t * transferBuffer,
uint16_t * transferBufferLength);
57 bool setConfiguration(SetupPacket * request);
59 bool m_resetOnDisconnect;
virtual void setActiveConfiguration(uint8_t configurationIndex)=0
Device(Interface *interface)
virtual uint8_t getActiveConfiguration()=0
bool isSoftDisconnected() const
bool processSetupInRequest(SetupPacket *request, uint8_t *transferBuffer, uint16_t *transferBufferLength, uint16_t transferBufferMaxLength) override
virtual Descriptor * descriptor(uint8_t type, uint8_t index)=0
void setResetOnDisconnect(bool reset)