template <>

class WireServer

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

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_hardware_usb_hci::UsbHci>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_usb_hci::UsbHci>|).

Public Methods

void ConnectToEndpoint (::fuchsia_hardware_usb_hci::wire::UsbHciConnectToEndpointRequest * request, ConnectToEndpointCompleter::Sync & completer)

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.

void SetInterface (::fuchsia_hardware_usb_hci::wire::UsbHciSetInterfaceRequest * request, SetInterfaceCompleter::Sync & completer)

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

void GetMaxDeviceCount (GetMaxDeviceCountCompleter::Sync & completer)

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

void EnableEndpoint (::fuchsia_hardware_usb_hci::wire::UsbHciEnableEndpointRequest * request, EnableEndpointCompleter::Sync & completer)

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

void GetCurrentFrame (GetCurrentFrameCompleter::Sync & completer)

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

void ConfigureHub (::fuchsia_hardware_usb_hci::wire::UsbHciConfigureHubRequest * request, ConfigureHubCompleter::Sync & completer)

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

void HubDeviceAdded (::fuchsia_hardware_usb_hci::wire::UsbHciHubDeviceAddedRequest * request, HubDeviceAddedCompleter::Sync & completer)

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

void HubDeviceRemoved (::fuchsia_hardware_usb_hci::wire::UsbHciHubDeviceRemovedRequest * request, HubDeviceRemovedCompleter::Sync & completer)

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

void HubDeviceReset (::fuchsia_hardware_usb_hci::wire::UsbHciHubDeviceResetRequest * request, HubDeviceResetCompleter::Sync & completer)

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

void ResetEndpoint (::fuchsia_hardware_usb_hci::wire::UsbHciResetEndpointRequest * request, ResetEndpointCompleter::Sync & completer)

Resets an endpoint on the specified device.

void ResetDevice (::fuchsia_hardware_usb_hci::wire::UsbHciResetDeviceRequest * request, ResetDeviceCompleter::Sync & completer)

Resets the specified device.

void GetMaxTransferSize (::fuchsia_hardware_usb_hci::wire::UsbHciGetMaxTransferSizeRequest * request, GetMaxTransferSizeCompleter::Sync & completer)

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

void WireServer ()

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

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

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