template <>

class NaturalClientImpl

Defined at line 516 of file fidling/gen/sdk/fidl/fuchsia.hardware.sdmmc/fuchsia.hardware.sdmmc/cpp/fidl/fuchsia.hardware.sdmmc/cpp/driver/natural_messaging.h

Public Methods

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::HostInfo> HostInfo ()

Get host info.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::SetSignalVoltage> SetSignalVoltage (const ::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::SetSignalVoltage> & request)

Set signal voltage.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::SetBusWidth> SetBusWidth (const ::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::SetBusWidth> & request)

Set bus width.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::SetBusFreq> SetBusFreq (const ::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::SetBusFreq> & request)

Set bus frequency, zero means disable the clock to the card.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::SetTiming> SetTiming (const ::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::SetTiming> & request)

Set mmc timing.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::HwReset> HwReset ()

Issue a hw reset.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::PerformTuning> PerformTuning (const ::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::PerformTuning> & request)

Perform tuning.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::RegisterInBandInterrupt> RegisterInBandInterrupt (::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::RegisterInBandInterrupt> request)

Register the given callback to be called when an in-band interrupt is received from the

card. Before calling the callback the protocol implementation will disable the in-band

interrupt in the controller. In-band interrupts can be re-enabled by calling

`AckInBandInterrupt()` once the previous interrupt has been handled by the client.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::RegisterVmo> RegisterVmo (::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::RegisterVmo> request)

In the methods below, vmo_id is used to uniquely identify a VMO that will be passed to

Request in an SdmmcBufferRegion. VMO IDs are chosen by the caller, and may be any uint32

value.

Registers a VMO and transfers ownership to the protocol implementation. vmo_rights is a bit

field containing SdmmcVmoRight values, and determines the read/write permissions used by

the implementation when pinning or mapping the VMO. The implementation may pin vmo during

this call or any time it is used in a request, and may keep it pinned until the VMO is

unregistered. client_id may be in [0, SDMMC_MAX_CLIENT_ID] and identifies the ID space for

this VMO to be registered in (that is, two different VMOs may use the same ID if they are

registered for different clients).

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::UnregisterVmo> UnregisterVmo (const ::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::UnregisterVmo> & request)

The callee unmaps/unpins the VMO and returns ownership to the caller.

::fidl::internal::NaturalThenable< ::fuchsia_hardware_sdmmc::Sdmmc::Request> Request (::fidl::Request< ::fuchsia_hardware_sdmmc::Sdmmc::Request> request)

Perform the requests in order, atomically (i.e., no intervening requests). Furthermore,

calls are replied to in the order they are received. If an error occurs, abort any remaining

requests. Else, return the response of the last request.

The protocol implementation chooses whether or not to use DMA

depending on the properties of the request and the capabilities of the controller.

Clients are responsible for performing the following cache operations:

After read requests:

- Call zx_cache_flush with ZX_CACHE_FLUSH_DATA | ZX_CACHE_FLUSH_INVALIDATE on buffers that

have been mapped by the client.

- Call zx_vmo_op_range with ZX_VMO_OP_CACHE_CLEAN_INVALIDATE on all other buffers.

Note that writing to any portion of a buffer before Request has returned can corrupt the

received data.

Before write requests:

- Call zx_cache_flush with ZX_CACHE_FLUSH_DATA on buffers that have been mapped by the

client.

- Call zx_vmo_op_range with ZX_VMO_OP_CACHE_CLEAN on all other buffers.

::fit::result< ::fidl::OneWayError> AckInBandInterrupt ()