Radio Statistics#

This module includes functions for radio statistics.

Modules#

otRadioTimeStats

Typedefs#

typedef struct otRadioTimeStats

Contains the statistics of radio.

Functions#

otRadioTimeStatsGet(otInstance *aInstance)

Gets the radio statistics.

void
otRadioTimeStatsReset(otInstance *aInstance)

Resets the radio statistics.

Typedef Documentation#

otRadioTimeStats#

typedef struct otRadioTimeStats otRadioTimeStats

Contains the statistics of radio.


Definition at line 65 of file include/openthread/radio_stats.h

Function Documentation#

otRadioTimeStatsGet#

const otRadioTimeStats * otRadioTimeStatsGet (otInstance * aInstance)

Gets the radio statistics.

Parameters
[in]aInstance

A pointer to an OpenThread instance.

The radio statistics include the time when the radio is in TX/RX/Sleep state. These times are in units of microseconds. All times are calculated from the last reset of radio statistics.

Returns


Definition at line 77 of file include/openthread/radio_stats.h

otRadioTimeStatsReset#

void otRadioTimeStatsReset (otInstance * aInstance)

Resets the radio statistics.

Parameters
[in]aInstance

A pointer to an OpenThread instance.

All times are reset to 0.


Definition at line 86 of file include/openthread/radio_stats.h