template <>
class Server
Defined at line 557 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.dci/fuchsia.hardware.usb.dci/cpp/fidl/fuchsia.hardware.usb.dci/cpp/natural_messaging.h
Public Methods
void ConnectToEndpoint (ConnectToEndpointRequest & 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 Server ()
Defined at line 560 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.dci/fuchsia.hardware.usb.dci/cpp/fidl/fuchsia.hardware.usb.dci/cpp/natural_messaging.h
void SetInterface (SetInterfaceRequest & 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 (ConfigureEndpointRequest & request, ConfigureEndpointCompleter::Sync & completer)
Configure and endpoint with the given configuration.
See usb20 9.6.6
void DisableEndpoint (DisableEndpointRequest & request, DisableEndpointCompleter::Sync & completer)
Disable the given endpoint.
void EndpointSetStall (EndpointSetStallRequest & request, EndpointSetStallCompleter::Sync & completer)
Set stall condition for the given endpoint.
See usb20 8.5.3.4
void EndpointClearStall (EndpointClearStallRequest & request, EndpointClearStallCompleter::Sync & completer)
Clear stall condition for the given endpoint.
See usb32 8.5.3.4
void CancelAll (CancelAllRequest & request, CancelAllCompleter::Sync & completer)
Cancel all pending transactions for the given endpoint.
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 ~Server ()
Defined at line 561 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.dci/fuchsia.hardware.usb.dci/cpp/fidl/fuchsia.hardware.usb.dci/cpp/natural_messaging.h