class LinkMetricsProbingIe

Defined at line 368 of file ../../third_party/openthread/src/core/mac/mac_header_ie.hpp

Represents a Link Metrics Probing IE (using in Enhanced Ack).

Public Members

static const uint8_t kMaxMetricsDataLen

Public Methods

void Init (uint8_t aMetricsDataLen)

Initializes the Link Metrics Probing IE.

Parameters

aMetricsDataLen [in] The requested length of Link Metrics Data. If greater than `kMaxMetricsDataLen`,then `kMaxMetricsDataLen` is used instead.

Defined at line 384 of file ../../third_party/openthread/src/core/mac/mac_header_ie.hpp

uint8_t GetMetricsDataLen ()

Returns the length of Link Metrics Data in bytes.

Defined at line 396 of file ../../third_party/openthread/src/core/mac/mac_header_ie.hpp

const uint8_t * GetMetricsData ()

Returns a pointer to the Link Metrics Data bytes.

Defined at line 403 of file ../../third_party/openthread/src/core/mac/mac_header_ie.hpp

void WriteMetricsDataFrom (const uint8_t * aData)

Writes Link Metrics Data content from a given buffer.

Parameters

aData [in] A pointer to a buffer containing the data to write. The caller must ensure that at least`GetMetricsDataLen()` bytes are available in

Defined at line 411 of file ../../third_party/openthread/src/core/mac/mac_header_ie.hpp

Friends

class HeaderIe