template <>

class WireServer

Defined at line 2286 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.dci/fuchsia.hardware.usb.dci/cpp/fidl/fuchsia.hardware.usb.dci/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_dci::UsbDci>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_usb_dci::UsbDci>|).

Public Methods

void ConnectToEndpoint (::fuchsia_hardware_usb_dci::wire::UsbDciConnectToEndpointRequest * request, ConnectToEndpointCompleter::Sync & completer)

Connects to endpoint. Returns

* ZX_ERR_NOT_FOUND: if endpoint address does not exist.

* ZX_ERR_ALREADY_BOUND: if the endpoint is already bound.

void SetInterface (::fuchsia_hardware_usb_dci::wire::UsbDciSetInterfaceRequest * request, SetInterfaceCompleter::Sync & completer)

Bind the interface as given by the child node.

void StartController (StartControllerCompleter::Sync & completer)

Start running in peripheral mode. Connects the device to the host. Usually called when all

functions are ready.

void StopController (StopControllerCompleter::Sync & completer)

Stop running in peripheral mode. Disconnects the device from the host. Usually called when

a function is cleared.

void ConfigureEndpoint (::fuchsia_hardware_usb_dci::wire::UsbDciConfigureEndpointRequest * request, ConfigureEndpointCompleter::Sync & completer)

Configure and endpoint with the given configuration.

See usb20 9.6.6

void DisableEndpoint (::fuchsia_hardware_usb_dci::wire::UsbDciDisableEndpointRequest * request, DisableEndpointCompleter::Sync & completer)

Disable the given endpoint.

void EndpointSetStall (::fuchsia_hardware_usb_dci::wire::UsbDciEndpointSetStallRequest * request, EndpointSetStallCompleter::Sync & completer)

Set stall condition for the given endpoint.

See usb20 8.5.3.4

void EndpointClearStall (::fuchsia_hardware_usb_dci::wire::UsbDciEndpointClearStallRequest * request, EndpointClearStallCompleter::Sync & completer)

Clear stall condition for the given endpoint.

See usb32 8.5.3.4

void CancelAll (::fuchsia_hardware_usb_dci::wire::UsbDciCancelAllRequest * request, CancelAllCompleter::Sync & completer)

Cancel all pending transactions for the given endpoint.

void WireServer ()

Defined at line 2289 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.dci/fuchsia.hardware.usb.dci/cpp/fidl/fuchsia.hardware.usb.dci/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 2290 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.dci/fuchsia.hardware.usb.dci/cpp/fidl/fuchsia.hardware.usb.dci/cpp/wire_messaging.h