template <>
class WireSyncClientImpl
Defined at line 1649 of file fidling/gen/sdk/fidl/fuchsia.hardware.registers/fuchsia.hardware.registers/cpp/fidl/fuchsia.hardware.registers/cpp/wire_messaging.h
Methods to make a sync FIDL call directly on an unowned handle or a
const reference to a |::fidl::ClientEnd
<
::fuchsia_hardware_registers::Device>|,
avoiding setting up a client.
Public Methods
::fidl::WireResult< ::fuchsia_hardware_registers::Device::ReadRegister8> ReadRegister8 (uint64_t offset, uint8_t mask)
Reads from the register from the specified MMIO offset in register width equal to 8, 16, 32, and
64 bit variants.
|offset| : Offset from base of MMIO to read from. Offset must be aligned to beginning of register. For
example, for 32 bits, offset must be divisible by 4, and for 64 bits, offset
must be divisible by 8. If this is not satisfied, read will fail.
|mask| : Mask of bits to read. For example, to read the lower 2 bytes of data in a 32 bit
register, mask should be 0x0000FFFF.
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::ReadRegister16> ReadRegister16 (uint64_t offset, uint16_t mask)
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::ReadRegister32> ReadRegister32 (uint64_t offset, uint32_t mask)
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::ReadRegister64> ReadRegister64 (uint64_t offset, uint64_t mask)
Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::WriteRegister8> WriteRegister8 (uint64_t offset, uint8_t mask, uint8_t value)
Writes to the register at the specified MMIO offset in register width equal to 8, 16, 32, and
64 bit variants
|offset| : Offset from base of MMIO to write to. Offset must be aligned to beginning of register. For
example, for 32 bits, offset must be divisible by 4, and for 64 bits, offset
must be divisible by 8. If this is not satisfied, write will fail.
|mask| : Mask of bits to write. For example, to write to the lower 2 bytes of data in a 32
bit register, mask should be 0x0000FFFF.
|value| : Value of register at the specified address.
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::WriteRegister16> WriteRegister16 (uint64_t offset, uint16_t mask, uint16_t value)
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::WriteRegister32> WriteRegister32 (uint64_t offset, uint32_t mask, uint32_t value)
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_hardware_registers::Device::WriteRegister64> WriteRegister64 (uint64_t offset, uint64_t mask, uint64_t value)
Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.