template <>

class WireSyncClientImpl

Defined at line 2421 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.hci/fuchsia.hardware.usb.hci/cpp/fidl/fuchsia.hardware.usb.hci/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_hci::UsbHci>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::ConnectToEndpoint> ConnectToEndpoint (uint32_t device_id, uint8_t ep_addr, ::fidl::ServerEnd< ::fuchsia_hardware_usb_endpoint::Endpoint> && ep)

Connects to endpoint. Returns

* ZX_ERR_NOT_FOUND: if device id and/or endpoint address does not exist.

* ZX_ERR_ALREADY_BOUND: if the endpoint is already bound.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::SetInterface> SetInterface (::fidl::ClientEnd< ::fuchsia_hardware_usb_hci::UsbHciInterface> && interface)

Registers callbacks to the USB bus driver with the HCI driver.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::GetMaxDeviceCount> GetMaxDeviceCount ()

Returns the maximum number of USB devices that might be connected to the controller.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::EnableEndpoint> EnableEndpoint (uint32_t device_id, const ::fuchsia_hardware_usb_descriptor::wire::UsbEndpointDescriptor & ep_desc, const ::fuchsia_hardware_usb_descriptor::wire::UsbSsEpCompDescriptor & ss_com_desc, bool enable)

Enables or disables an endpoint using parameters derived from |ep_desc|.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::GetCurrentFrame> GetCurrentFrame ()

Returns the current frame (in milliseconds), used for isochronous transfers.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::ConfigureHub> ConfigureHub (uint32_t device_id, ::fuchsia_hardware_usb_descriptor::wire::UsbSpeed speed, const ::fuchsia_hardware_usb_descriptor::wire::UsbHubDescriptor & desc, bool multi_tt)

Called by the USB hub driver to configure a newly enumerated USB hub.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::HubDeviceAdded> HubDeviceAdded (uint32_t device_id, uint32_t port, ::fuchsia_hardware_usb_descriptor::wire::UsbSpeed speed)

Called by the USB hub driver when a new device is attached.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::HubDeviceRemoved> HubDeviceRemoved (uint32_t device_id, uint32_t port)

Called by the USB hub driver when a device has been removed.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::HubDeviceReset> HubDeviceReset (uint32_t device_id, uint32_t port)

Called by the USB hub driver when a device has been reset.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::ResetEndpoint> ResetEndpoint (uint32_t device_id, uint8_t ep_address)

Resets an endpoint on the specified device.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::ResetDevice> ResetDevice (uint32_t hub_address, uint32_t device_id)

Resets the specified device.

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

::fidl::WireResult< ::fuchsia_hardware_usb_hci::UsbHci::GetMaxTransferSize> GetMaxTransferSize (uint32_t device_id, uint8_t ep_address)

Returns the maximum size of a packet that can be queued on the specified endpoint.

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