class Platform

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

OpenThread platform state for the ot-rcp-fuchsia RCP: tasklet scheduling, the millisecond

alarm, time, the stub radio, and the per-node identity (node id, EUI-64, log tag, reset reason).

There is at most one Platform at a time, reachable through `Get()`. Not thread-safe and

should be called on the same dispatcher.

Public Members

static const uint64_t kEui64Base

Public Methods

void Create (async_dispatcher_t * dispatcher, uint32_t node_id)

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

void Destroy ()

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

Platform & Get ()

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

void Platform (const Platform & )

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

Platform & operator= (const Platform & )

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

void Platform (async_dispatcher_t * dispatcher, uint32_t node_id)

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

uint32_t node_id ()

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

uint64_t eui64 ()

EUI-64 of this node, used as the radio's factory MAC address.

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

const std::string & log_tag ()

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

otPlatResetReason reset_reason ()

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

void set_reset_reason (otPlatResetReason reason)

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

Radio & radio ()

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

void SignalTaskletPending (otInstance * instance)

Backing for the `otPlat*` entry points.

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

void StartMilliAlarm (otInstance * instance, uint32_t t0, uint32_t dt)

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

void StopMilliAlarm ()

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

uint32_t NowMillis ()

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

uint64_t NowMicros ()

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