template <>
class WireServer
Defined at line 715 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2cimpl/fuchsia.hardware.i2cimpl/cpp/fidl/fuchsia.hardware.i2cimpl/cpp/driver/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fdf::ClientEnd
<
::fuchsia_hardware_i2cimpl::Device>|
and |::fdf::ServerEnd
<
::fuchsia_hardware_i2cimpl::Device>|).
Public Methods
void GetMaxTransferSize (fdf::Arena & arena, GetMaxTransferSizeCompleter::Sync & completer)
void SetBitrate (::fuchsia_hardware_i2cimpl::wire::DeviceSetBitrateRequest * request, fdf::Arena & arena, SetBitrateCompleter::Sync & completer)
Sets the bitrate for the i2c bus in KHz units.
void Transact (::fuchsia_hardware_i2cimpl::wire::DeviceTransactRequest * request, fdf::Arena & arena, TransactCompleter::Sync & completer)
|Transact| assumes that write ops write_data length are not zero.
|Transact| assumes that at least the last op has stop set to true.
For each read-transaction, there will be a corresponding ReadData
returned. Write-transactions produce no data result.
void WireServer ()
Defined at line 718 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2cimpl/fuchsia.hardware.i2cimpl/cpp/fidl/fuchsia.hardware.i2cimpl/cpp/driver/wire_messaging.h
Handler bind_handler (fdf_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 719 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2cimpl/fuchsia.hardware.i2cimpl/cpp/fidl/fuchsia.hardware.i2cimpl/cpp/driver/wire_messaging.h