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