template <>

class WireServer

Defined at line 2037 of file fidling/gen/sdk/fidl/fuchsia.hardware.spmi/fuchsia.hardware.spmi/cpp/fidl/fuchsia.hardware.spmi/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_hardware_spmi::Debug>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_spmi::Debug>|).

Public Methods

void ConnectTarget (::fuchsia_hardware_spmi::wire::DebugConnectTargetRequest * request, ConnectTargetCompleter::Sync & completer)

Connects to the target device with the given ID. Equivalent to connecting to `TargetService`

via the corresponding driver node.

Returns `INVALID_ARGS` if `target_id` is greater than or equal to `MAX_TARGETS`.

May return an error if there is no such target on the bus; otherwise errors will be returned

when attempting to access the client.

void GetControllerProperties (GetControllerPropertiesCompleter::Sync & completer)

Returns the properties of the host SPMI controller.

void WireServer ()

Defined at line 2040 of file fidling/gen/sdk/fidl/fuchsia.hardware.spmi/fuchsia.hardware.spmi/cpp/fidl/fuchsia.hardware.spmi/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 2041 of file fidling/gen/sdk/fidl/fuchsia.hardware.spmi/fuchsia.hardware.spmi/cpp/fidl/fuchsia.hardware.spmi/cpp/wire_messaging.h