template <>

class WireWeakSyncClientImpl

Defined at line 2856 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.device/fuchsia.hardware.usb.device/cpp/fidl/fuchsia.hardware.usb.device/cpp/wire_messaging.h

Public Methods

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetDeviceSpeed> GetDeviceSpeed ()

Returns the speed of the USB device as a usb_speed_t value.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetDeviceDescriptor> GetDeviceDescriptor ()

Returns the device's USB device descriptor.

Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetConfigurationDescriptorSize> GetConfigurationDescriptorSize (uint8_t config)

Returns the total size of the USB configuration descriptor for the given configuration.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetConfigurationDescriptor> GetConfigurationDescriptor (uint8_t config)

Returns the device's USB configuration descriptor for the given configuration.

Allocates 24 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetStringDescriptor> GetStringDescriptor (uint8_t desc_id, uint16_t lang_id)

Fetches a string descriptor from the USB device.

desc_id : The ID of the string descriptor to fetch, or 0 to fetch

the language table instead.

lang_id : The language ID of the string descriptor to fetch.

If no matching language ID is present in the device's language

ID table, the first entry of the language ID table will

be substituted.

actual_lang_id : The actual language ID of the string fetched, or 0 for

the language ID table.

The worst case size for the payload of a language ID table should be 252

bytes, meaning that a 256 byte buffer should always be enough to hold any

language ID table.

The worst case size for a UTF-8 encoded string descriptor payload should be

378 bytes (126 UTF-16 code units with a worst case expansion factor of 3)

Allocates 456 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::SetInterface> SetInterface (uint8_t interface_number, uint8_t alt_setting)

Selects an alternate setting for an interface on a USB device.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetDeviceId> GetDeviceId ()

Returns an implementation specific device ID for a USB device.

For informational purposes only.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetHubDeviceId> GetHubDeviceId ()

Returns the implementation specific device ID for the hub that a USB device is connected to.

For informational purposes only.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::GetConfiguration> GetConfiguration ()

Returns the device's current configuration.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_usb_device::Device::SetConfiguration> SetConfiguration (uint8_t configuration)

Sets the device's current configuration.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.