VENDOR/HostDevice.h
Go to the documentation of this file.
93 using MountCallback = Delegate<HostDevice*(const HostInterface::Instance& inst, const HostDevice::Config& cfg)>;
DescriptorList list
Interface descriptor list.
Definition: VENDOR/HostDevice.h:40
Structure passed to 'transferComplete' method.
Definition: VENDOR/HostDevice.h:46
virtual bool transferComplete(const Transfer &txfr)=0
Called when a non-control USB transfer has completed.
bool openEndpoint(const tusb_desc_endpoint_t &ep_desc)
Implementations should call this method during initialisation.
void onMount(MountCallback callback)
Application should call this method to receive device connection notifications.
Definition: Delegate.h:20
bool ownsEndpoint(uint8_t ep_addr)
virtual bool setConfig(uint8_t itf_num)=0
Set active configuration.
void end() override
Called when device is disconnected. Override as required.
Definition: VENDOR/HostDevice.h:55
Device configuration received during mount procedure.
Definition: VENDOR/HostDevice.h:37
void onUnmount(UnmountCallback callback)
Application should call this method to receive device disconnection notifications.
Definition: Libraries/USB/src/USB/VENDOR/Device.h:25
uint32_t xferred_bytes
Definition: VENDOR/HostDevice.h:50
1.8.13