template <>

class Server

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

Public Methods

void ConnectTarget (ConnectTargetRequest & 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 Server ()

Defined at line 653 of file fidling/gen/sdk/fidl/fuchsia.hardware.spmi/fuchsia.hardware.spmi/cpp/fidl/fuchsia.hardware.spmi/cpp/natural_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 ~Server ()

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