template <>

class WireSyncClientImpl

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

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_hardware_usb_peripheral::Device>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_usb_peripheral::Device::SetConfiguration> SetConfiguration (const ::fuchsia_hardware_usb_peripheral::wire::DeviceDescriptor & device_desc, ::fidl::VectorView< ::fidl::VectorView< ::fuchsia_hardware_usb_peripheral::wire::FunctionDescriptor>> config_descriptors)

Sets the device's descriptors, adds the functions and creates the child devices for the

configuration's interfaces.

At least one function descriptor must be provided.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_usb_peripheral::Device::ClearFunctions> ClearFunctions ()

Tells the device to remove the child devices for the configuration's interfaces

and reset the list of functions to empty.

The caller should wait for the `FunctionsCleared` event.

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

::fidl::OneWayStatus SetStateChangeListener (::fidl::ClientEnd< ::fuchsia_hardware_usb_peripheral::Events> && listener)

Adds a state change listener that is invoked when a state change completes.

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