Radio Statistics#
This module includes functions for 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#
Function Documentation#
otRadioTimeStatsGet#
const otRadioTimeStats * otRadioTimeStatsGet (otInstance * aInstance)
Gets the radio statistics.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
otInstance * | [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.
otRadioTimeStatsReset#
void otRadioTimeStatsReset (otInstance * aInstance)
Resets the radio statistics.
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
otInstance * | [in] | aInstance | A pointer to an OpenThread instance. |
All times are reset to 0.