template <>

class WireSyncClientImpl

Defined at line 2451 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/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_platform_device::Device>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetMmioById> GetMmioById (uint32_t index)

Returns a memory mapped IO (MMIO) resource for the given |index|.

* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of

mmios.

* error `ZX_ERR_INTERNAL` if the retrieved mmio is not valid.

* error `ZX_ERR_NOT_FOUND` if the retrieved mmio's base address is NULL.

Allocates 24 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetMmioByName> GetMmioByName (::fidl::StringView name)

Returns a memory mapped IO (MMIO) resource for the given |name|.

* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.

* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.

* error `ZX_ERR_INTERNAL` if the retrieved mmio is not valid.

* error `ZX_ERR_NOT_FOUND` if the retrieved's mmio base address is NULL.

Allocates 160 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetInterruptById> GetInterruptById (uint32_t index, uint32_t flags)

Returns an interrupt handle for the given |index|.

|flags| is forwarded as the |options| parameter to `zx_interrupt_create`.

* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of

interrupts.

* error `ZX_ERR_INTERNAL` if the retrieved interrupt is not valid.

Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetInterruptByName> GetInterruptByName (::fidl::StringView name, uint32_t flags)

Returns an interrupt handle for the given |name|.

|flags| is forwarded as the |options| parameter to `zx_interrupt_create`.

* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.

* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.

* error `ZX_ERR_INTERNAL` if the retrieved interrupt is not valid.

Allocates 200 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetBtiById> GetBtiById (uint32_t index)

Returns a bus transaction initiator (bti) handle for the given |index|.

* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of

btis.

* error `ZX_ERR_INTERNAL` if the retrieved bti is not valid.

Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetBtiByName> GetBtiByName (::fidl::StringView name)

Returns a bus transaction initiator (bti) handle for the given |name|.

* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.

* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.

* error `ZX_ERR_INTERNAL` if the retrieved bti is not valid.

Allocates 192 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetSmcById> GetSmcById (uint32_t index)

Returns a secure monitor call (smc) handle for the given |index|.

* error `ZX_ERR_OUT_OF_RANGE` if |index| is equal or greater than the number of

smcs.

* error `ZX_ERR_INTERNAL` if the retrieved smc is not valid.

Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetSmcByName> GetSmcByName (::fidl::StringView name)

Returns a secure monitor call (smc) handle for the given |name|.

* error `ZX_ERR_INVALID_ARGS` if |name| is an empty string.

* error `ZX_ERR_OUT_OF_RANGE` if |name| is not found.

* error `ZX_ERR_INTERNAL` if the retrieved smc is not valid.

Allocates 192 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetPowerConfiguration> GetPowerConfiguration ()

Returns power configuration for the device the driver has bound to.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetNodeDeviceInfo> GetNodeDeviceInfo ()

Returns information about the device corresponding to the node

that the driver has bound to.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetBoardInfo> GetBoardInfo ()

Return information about the board the device is attached to.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_platform_device::Device::GetMetadata> GetMetadata (::fidl::StringView id)

Returns the metadata associated with the device and |id|.

Returns ZX_ERR_NOT_FOUND if the metadata does not exist.

Request is heap-allocated. Response is heap-allocated.