class Radio

Defined at line 26 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

Stub IEEE 802.15.4 radio for ot-rcp-fuchsia.

The radio keeps a Disabled/Sleep/Receive/Transmit state machine. Transmitted frames are dropped,

nothing is ever received, and no hardware capabilities are reported.

One instance is owned by the Platform (see platform.h) and is reached through

`Platform::Get().radio()`; the otPlatRadio* entry points in ot_radio_platform.cc forward to it.

Destroying it cancels an in-flight transmission; the power-on configuration is restored simply

by constructing a new one.

Public Methods

void Radio (async_dispatcher_t * dispatcher)

Defined at line 25 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

void GetIeeeEui64 (uint8_t * eui64)

Identity and capabilities.

Defined at line 30 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otRadioCaps GetCaps ()

Defined at line 37 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError Enable ()

Defined at line 39 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError Disable ()

Defined at line 46 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

void Radio (const Radio & )

Defined at line 49 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

Radio & operator= (const Radio & )

Defined at line 50 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

otError Sleep ()

Defined at line 52 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otRadioState GetState ()

State machine.

Defined at line 57 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

bool IsEnabled ()

Defined at line 58 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

otError Receive (uint8_t channel)

Defined at line 63 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otRadioFrame * GetTransmitBuffer ()

Transmission.

Defined at line 65 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

int8_t GetRssi ()

Environment.

Defined at line 69 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

int8_t GetReceiveSensitivity ()

Defined at line 70 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

otError Transmit (otInstance * instance, otRadioFrame * frame)

Defined at line 72 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

bool GetPromiscuous ()

Host-controlled settings.

Defined at line 74 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

void SetPromiscuous (bool enable)

Defined at line 75 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

bool IsCoexEnabled ()

Defined at line 76 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

const Config & config ()

Defined at line 83 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

const Environment & environment ()

Defined at line 84 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

void set_environment (const Environment & environment)

Defined at line 85 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.h

otError GetCoexMetrics (otRadioCoexMetrics * metrics)

Defined at line 86 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError SetCoexEnabled (bool enabled)

Defined at line 94 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError GetTransmitPower (int8_t * power)

Defined at line 99 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError SetTransmitPower (int8_t power)

Defined at line 107 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError GetCcaEnergyDetectThreshold (int8_t * threshold)

Defined at line 112 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

otError SetCcaEnergyDetectThreshold (int8_t threshold)

Defined at line 120 of file ../../src/connectivity/openthread/tests/ot-rcp-fuchsia/rcp/platform/radio.cc

Records