class RxFrame

Defined at line 791 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Supports received IEEE 802.15.4 MAC frame processing.

Public Methods

int8_t GetRssi ()

Returns the RSSI in dBm used for reception.

Defined at line 825 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

bool IsSecuredWith (KeyIdModeFlags aFlags)

Indicates whether the frame is secured with a given set of allowed Key ID Modes.

Parameters

aFlags [in] A bitmask of `KeyIdModeFlags` specifying the allowed modes.
void SetRssi (int8_t aRssi)

Sets the RSSI in dBm used for reception.

Parameters

aRssi [in] The RSSI in dBm used for reception.

Defined at line 832 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

uint8_t GetLqi ()

Returns the receive Link Quality Indicator.

Defined at line 839 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

void SetLqi (uint8_t aLqi)

Sets the receive Link Quality Indicator.

Parameters

aLqi [in] The receive Link Quality Indicator.

Defined at line 846 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

bool IsAckedWithFramePending ()

Indicates whether or not the received frame is acknowledged with frame pending set.

Defined at line 854 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

const RadioTime64 & GetTimestamp ()

Returns the timestamp when the frame was received.

The value SHALL be the time of the local radio clock in

microseconds when the end of the SFD (or equivalently: the start

of the first symbol of the PHR) was present at the local antenna,

see the definition of a "symbol boundary" in IEEE 802.15.4-2020,

section 6.5.2 or equivalently the RMARKER definition in section

6.9.1 (albeit both unrelated to OT).

The time is relative to the local radio clock as defined by

`Radio::GetNow()`.

Defined at line 871 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Error ProcessReceiveAesCcm (const ExtAddress & aExtAddress, const KeyMaterial & aMacKey)

Performs AES CCM on the frame which is received.

Parameters

aExtAddress [in] A reference to the extended address, which will be used to generate noncefor AES CCM computation.
aMacKey [in] A reference to the MAC key to decrypt the received frame.

Enumerations

enum KeyIdModeFlag : uint8_t
Name Value Comments
kAllowKeyIdMode0 (1 << 0)

Allow Key ID Mode 0.

kAllowKeyIdMode1 (1 << 1)

Allow Key ID Mode 1.

Defines flags to indicate allowed Key ID Modes, used in `IsSecuredWith()`.

Defined at line 799 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Friends

class TxFrame