template <>

class Server

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

Public Methods

void ReadBuffer (ReadBufferRequest & request, ReadBufferCompleter::Sync & completer)

The VMO used in the method is not owned by the protocol implementation.

In the case of ReadBuffer, the client provides an empty VMO for the server to fill,

while in the case of WriteBuffer, the client must fill the VMO with data before making

the request.

void Server ()

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

void WriteBuffer (WriteBufferRequest & request, WriteBufferCompleter::Sync & completer)
void ReadDescriptor (ReadDescriptorRequest & request, ReadDescriptorCompleter::Sync & completer)

Retrieves and returns the UFS Descriptor.

void WriteDescriptor (WriteDescriptorRequest & request, WriteDescriptorCompleter::Sync & completer)

Writes a UFS Descriptor.

void ReadFlag (ReadFlagRequest & request, ReadFlagCompleter::Sync & completer)

Reads a flag. A flag is a fixed size single byte value that represents a Boolean value.

void SetFlag (SetFlagRequest & request, SetFlagCompleter::Sync & completer)

Sets a flag.

void ClearFlag (ClearFlagRequest & request, ClearFlagCompleter::Sync & completer)

Clears a flag.

void ToggleFlag (ToggleFlagRequest & request, ToggleFlagCompleter::Sync & completer)

Toggles a flag.

void ReadAttribute (ReadAttributeRequest & request, ReadAttributeCompleter::Sync & completer)

Reads an attribute.

void WriteAttribute (WriteAttributeRequest & request, WriteAttributeCompleter::Sync & completer)

Writes an attribute.

void SendUicCommand (SendUicCommandRequest & request, SendUicCommandCompleter::Sync & completer)

Sends a UIC command to the UFS device.

void Request (RequestRequest & request, RequestCompleter::Sync & completer)

UFS transactions use UPIU packets with a fixed 12-byte header, transaction-specific fields,

possibly one or more extended header segments and zero or more data segments.

For direct construction and usage of UPIU packets, use this function.

The UPIU format is defined in UFS 3.1, section 10.6.

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 705 of file fidling/gen/sdk/fidl/fuchsia.hardware.ufs/fuchsia.hardware.ufs/cpp/fidl/fuchsia.hardware.ufs/cpp/natural_messaging.h