template <>

class NaturalClientImpl

Defined at line 609 of file fidling/gen/sdk/fidl/fuchsia.wlan.phyimpl/fuchsia.wlan.phyimpl/cpp/fidl/fuchsia.wlan.phyimpl/cpp/driver/natural_messaging.h

Public Methods

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::Init> Init (::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::Init> request)

This method can be used by the WlanPhyImpl client to send the client end of the

WlanPhyImplNotify endpoint for the WlanPhyImpl server to use. If the WlanPhyImpl client

never invokes this method that is an indirect implication that the WlanPhyImplNotify is not

supported. Some possible error codes are:

ZX_ERR_NOT_SUPPORTED: The WlanPhyImpl server does not support the WlanPhyImplNotify protocol.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::GetSupportedMacRoles> GetSupportedMacRoles ()

MAC roles supported for ifaces on the physical device.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::CreateIface> CreateIface (::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::CreateIface> request)

Create a new interface with the specified role, returning the interface id.

\

/// Some common error codes are:

\

/// ZX_ERR_NO_RESOURCES: maximum number of interfaces have already been created.

\

/// ZX_ERR_NOT_SUPPORTED: device does not support the specified role.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::DestroyIface> DestroyIface (const ::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::DestroyIface> & request)

Destroy the interface with the matching id.

\

/// Some common error codes are:

\

/// ZX_ERR_NOT_FOUND: Specified iface does not exist or has already been removed.

\

/// ZX_ERR_SHOULD_WAIT: Device is busy and cannot be removed, try again later.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetCountry> SetCountry (const ::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetCountry> & request)

Set country with a WlanPhyCountry.

\

/// Some common error codes are:

\

/// ZX_ERR_NOT_FOUND: Specified country code not supported. PHY state is left unchanged.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::ClearCountry> ClearCountry ()

Set device to a world-safe country, i.e. a mode that conforms to all

regulatory constraints globally.

\

/// Generally expected to succeed if the device is in a functional state.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::GetCountry> GetCountry ()

Read currently configured country. Implementations are advised to read the

country directly from the firmware, where possible.

\

/// Generally expected to succeed if the device is in a functional state.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetPowerSaveMode> SetPowerSaveMode (const ::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetPowerSaveMode> & request)

Set Power Save mode on device. In most implementations this

likely to be set in Firmware.

\

/// Some common error codes are:

\

/// ZX_ERR_NOT_SUPPORTED: Specified Power Save mode not supported.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::GetPowerSaveMode> GetPowerSaveMode ()

Get current Power Save mode from device. In most implementation this

likely to be retrieved from Firmware.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::PowerDown> PowerDown ()

Power up/down/reset the wlan chip.

If supported, PowerDown will power down the wlan chip if it is currently powered on.

Any existing interfaces should have already been deleted before making this call or else the

driver will fail the call with error code ZX_ERR_INTERNAL.

Other possible error codes are:

\

/// ZX_ERR_NOT_SUPPORTED: the feature is not supported by the driver.

ZX_ERR_BAD_STATE: the wlan chip is already powered down.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::PowerUp> PowerUp ()

If supported, PowerUp will power up the wlan chip if it is currently powered down.

Possible error codes are:

\

/// ZX_ERR_NOT_SUPPORTED: the feature is not supported by the driver.

ZX_ERR_BAD_STATE: the wlan chip is already powered up.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::Reset> Reset ()

If supported, Reset functionality implements PowerDown then PowerUp in an attempt to

recover from an error state. For example, if an interface gets into a bad state or if

firmware crashes, the firmware/chip may be unable to perform some actions and Reset

may be able to clear the bad state.

Possible error codes are:

\

/// ZX_ERR_NOT_SUPPORTED: the feature is not supported by the driver.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::GetPowerState> GetPowerState ()

Returns the current power state of the wlan chip. After successful initialization

of the wlan driver, the state is set to true (power on) by default. power_on set to

true indicates that the wlan chip is powered on and false indicates the wlan chip

is powered off.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetBtCoexistenceMode> SetBtCoexistenceMode (const ::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetBtCoexistenceMode> & request)

Set the Bluetooth coexistence mode.

Possible error codes are:

\

/// ZX_ERR_NOT_SUPPORTED: device does not support the specified BT coexistence mode.

::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetTxPowerScenario> SetTxPowerScenario (const ::fidl::Request< ::fuchsia_wlan_phyimpl::WlanPhyImpl::SetTxPowerScenario> & request)
::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::ResetTxPowerScenario> ResetTxPowerScenario ()
::fidl::internal::NaturalThenable< ::fuchsia_wlan_phyimpl::WlanPhyImpl::GetTxPowerScenario> GetTxPowerScenario ()