template <>

class NaturalClientImpl

Defined at line 446 of file fidling/gen/sdk/fidl/fuchsia.hardware.platform.device/fuchsia.hardware.platform.device/cpp/fidl/fuchsia.hardware.platform.device/cpp/natural_messaging.h

Public Methods

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetMmioById> GetMmioById (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetMmioById> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetMmioByName> GetMmioByName (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetMmioByName> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetInterruptById> GetInterruptById (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetInterruptById> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetInterruptByName> GetInterruptByName (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetInterruptByName> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetBtiById> GetBtiById (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetBtiById> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetBtiByName> GetBtiByName (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetBtiByName> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetSmcById> GetSmcById (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetSmcById> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetSmcByName> GetSmcByName (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetSmcByName> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetPowerConfiguration> GetPowerConfiguration ()

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

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetNodeDeviceInfo> GetNodeDeviceInfo ()

Returns information about the device corresponding to the node

that the driver has bound to.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetBoardInfo> GetBoardInfo ()

Return information about the board the device is attached to.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_platform_device::Device::GetMetadata> GetMetadata (const ::fidl::Request< ::fuchsia_hardware_platform_device::Device::GetMetadata> & request)

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

Returns ZX_ERR_NOT_FOUND if the metadata does not exist.