Radio Statistics#
Modules#
Typedefs#
typedef struct otRadioTimeStats
Contains the statistics of radio.
Functions#
const otRadioTimeStats *
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
64
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
A const pointer to the otRadioTimeStats struct that contains the data.
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
88
of file include/openthread/radio_stats.h