Radio Statistics
This module includes functions for radio statistics.
Summary
Typedefs |
|
---|---|
otRadioTimeStats
|
typedefstruct otRadioTimeStats
Contains the statistics of radio. |
Functions |
|
---|---|
otRadioTimeStatsGet(otInstance *aInstance)
|
const otRadioTimeStats *
Gets the radio statistics.
|
otRadioTimeStatsReset(otInstance *aInstance)
|
void
Resets the radio statistics.
|
Structs |
|
---|---|
otRadioTimeStats |
Contains the statistics of radio. |
Typedefs
Functions
otRadioTimeStatsGet
const otRadioTimeStats * otRadioTimeStatsGet( otInstance *aInstance )
Gets the radio statistics.
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.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A const pointer to the otRadioTimeStats struct that contains the data.
|
otRadioTimeStatsReset
void otRadioTimeStatsReset( otInstance *aInstance )
Resets the radio statistics.
All times are reset to 0.
Details | |||
---|---|---|---|
Parameters |
|
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.