Link Metrics
This module includes functions that control the Link Metrics protocol.
Summary
Enumerations |
|
---|---|
otLinkMetricsEnhAckFlags{
|
enum Enhanced-ACK Flags. |
otLinkMetricsStatus
|
enum Link Metrics Status values. |
Typedefs |
|
---|---|
otLinkMetricsEnhAckFlags
|
typedef Enhanced-ACK Flags. |
otLinkMetricsEnhAckProbingIeReportCallback)(otShortAddress aShortAddress, const otExtAddress *aExtAddress, const otLinkMetricsValues *aMetricsValues, void *aContext)
|
typedefvoid(*
Pointer is called when Enh-ACK Probing IE is received. |
otLinkMetricsMgmtResponseCallback)(const otIp6Address *aSource, otLinkMetricsStatus aStatus, void *aContext)
|
typedefvoid(*
Pointer is called when a Link Metrics Management Response is received. |
otLinkMetricsReportCallback)(const otIp6Address *aSource, const otLinkMetricsValues *aMetricsValues, otLinkMetricsStatus aStatus, void *aContext)
|
typedefvoid(*
Pointer is called when a Link Metrics report is received. |
otLinkMetricsSeriesFlags
|
typedefstruct otLinkMetricsSeriesFlags
Represents which frames are accounted in a Forward Tracking Series. |
otLinkMetricsStatus
|
typedefenum otLinkMetricsStatus
Link Metrics Status values. |
otLinkMetricsValues
|
typedefstruct otLinkMetricsValues
Represents the result (value) for a Link Metrics query. |
Functions |
|
---|---|
otLinkMetricsConfigEnhAckProbing(otInstance *aInstance, const otIp6Address *aDestination, otLinkMetricsEnhAckFlags aEnhAckFlags, const otLinkMetrics *aLinkMetricsFlags, otLinkMetricsMgmtResponseCallback aCallback, void *aCallbackContext, otLinkMetricsEnhAckProbingIeReportCallback aEnhAckCallback, void *aEnhAckCallbackContext)
|
Sends an MLE Link Metrics Management Request to configure/clear an Enhanced-ACK Based Probing.
|
otLinkMetricsConfigForwardTrackingSeries(otInstance *aInstance, const otIp6Address *aDestination, uint8_t aSeriesId, otLinkMetricsSeriesFlags aSeriesFlags, const otLinkMetrics *aLinkMetricsFlags, otLinkMetricsMgmtResponseCallback aCallback, void *aCallbackContext)
|
Sends an MLE Link Metrics Management Request to configure or clear a Forward Tracking Series.
|
otLinkMetricsManagerGetMetricsValueByExtAddr(otInstance *aInstance, const otExtAddress *aExtAddress, otLinkMetricsValues *aLinkMetricsValues)
|
Get Link Metrics data of a neighbor by its extended address.
|
otLinkMetricsManagerIsEnabled(otInstance *aInstance)
|
bool
If Link Metrics Manager is enabled.
|
otLinkMetricsManagerSetEnabled(otInstance *aInstance, bool aEnable)
|
void
Enable or disable Link Metrics Manager.
|
otLinkMetricsQuery(otInstance *aInstance, const otIp6Address *aDestination, uint8_t aSeriesId, const otLinkMetrics *aLinkMetricsFlags, otLinkMetricsReportCallback aCallback, void *aCallbackContext)
|
Sends an MLE Data Request to query Link Metrics.
|
otLinkMetricsSendLinkProbe(otInstance *aInstance, const otIp6Address *aDestination, uint8_t aSeriesId, uint8_t aLength)
|
Sends an MLE Link Probe message.
|
Structs |
|
---|---|
otLinkMetricsSeriesFlags |
Represents which frames are accounted in a Forward Tracking Series. |
otLinkMetricsValues |
Represents the result (value) for a Link Metrics query. |
Enumerations
otLinkMetricsEnhAckFlags
otLinkMetricsEnhAckFlags
otLinkMetricsStatus
otLinkMetricsStatus
Link Metrics Status values.
Typedefs
otLinkMetricsEnhAckFlags
enum otLinkMetricsEnhAckFlags otLinkMetricsEnhAckFlags
Enhanced-ACK Flags.
These are used in Enhanced-ACK Based Probing to indicate whether to register or clear the probing.
otLinkMetricsEnhAckProbingIeReportCallback
void(* otLinkMetricsEnhAckProbingIeReportCallback)(otShortAddress aShortAddress, const otExtAddress *aExtAddress, const otLinkMetricsValues *aMetricsValues, void *aContext)
Pointer is called when Enh-ACK Probing IE is received.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
otLinkMetricsMgmtResponseCallback
void(* otLinkMetricsMgmtResponseCallback)(const otIp6Address *aSource, otLinkMetricsStatus aStatus, void *aContext)
Pointer is called when a Link Metrics Management Response is received.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otLinkMetricsReportCallback
void(* otLinkMetricsReportCallback)(const otIp6Address *aSource, const otLinkMetricsValues *aMetricsValues, otLinkMetricsStatus aStatus, void *aContext)
Pointer is called when a Link Metrics report is received.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
otLinkMetricsSeriesFlags
struct otLinkMetricsSeriesFlags otLinkMetricsSeriesFlags
Represents which frames are accounted in a Forward Tracking Series.
otLinkMetricsValues
struct otLinkMetricsValues otLinkMetricsValues
Represents the result (value) for a Link Metrics query.
Functions
otLinkMetricsConfigEnhAckProbing
otError otLinkMetricsConfigEnhAckProbing( otInstance *aInstance, const otIp6Address *aDestination, otLinkMetricsEnhAckFlags aEnhAckFlags, const otLinkMetrics *aLinkMetricsFlags, otLinkMetricsMgmtResponseCallback aCallback, void *aCallbackContext, otLinkMetricsEnhAckProbingIeReportCallback aEnhAckCallback, void *aEnhAckCallbackContext )
Sends an MLE Link Metrics Management Request to configure/clear an Enhanced-ACK Based Probing.
This functionality requires OT_LINK_METRICS_INITIATOR feature enabled.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||
Return Values |
|
otLinkMetricsConfigForwardTrackingSeries
otError otLinkMetricsConfigForwardTrackingSeries( otInstance *aInstance, const otIp6Address *aDestination, uint8_t aSeriesId, otLinkMetricsSeriesFlags aSeriesFlags, const otLinkMetrics *aLinkMetricsFlags, otLinkMetricsMgmtResponseCallback aCallback, void *aCallbackContext )
Sends an MLE Link Metrics Management Request to configure or clear a Forward Tracking Series.
Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||||
Return Values |
|
otLinkMetricsManagerGetMetricsValueByExtAddr
otError otLinkMetricsManagerGetMetricsValueByExtAddr( otInstance *aInstance, const otExtAddress *aExtAddress, otLinkMetricsValues *aLinkMetricsValues )
Get Link Metrics data of a neighbor by its extended address.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkMetricsManagerIsEnabled
bool otLinkMetricsManagerIsEnabled( otInstance *aInstance )
If Link Metrics Manager is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkMetricsManagerSetEnabled
void otLinkMetricsManagerSetEnabled( otInstance *aInstance, bool aEnable )
Enable or disable Link Metrics Manager.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otLinkMetricsQuery
otError otLinkMetricsQuery( otInstance *aInstance, const otIp6Address *aDestination, uint8_t aSeriesId, const otLinkMetrics *aLinkMetricsFlags, otLinkMetricsReportCallback aCallback, void *aCallbackContext )
Sends an MLE Data Request to query Link Metrics.
It could be either Single Probe or Forward Tracking Series.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||
Return Values |
|
otLinkMetricsSendLinkProbe
otError otLinkMetricsSendLinkProbe( otInstance *aInstance, const otIp6Address *aDestination, uint8_t aSeriesId, uint8_t aLength )
Sends an MLE Link Probe message.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
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.