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