template <typename FrameType>

class FrameProperties

Defined at line 70 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

Defines a CRTP base class providing property accessors for a radio frame.

Users of this class should follow CRTP-style inheritance, where the `FrameType` class inherits from

`FrameProperties

<FrameType

>`.

The `FrameType` class MUST provide a `GetFrame()` method returning a reference to the associated `Frame` with the

following signature:

const Frame

&GetFrame

(void) const;

Template Parameters

FrameType The frame or frame-info type.

Public Methods

bool IsEmpty ()

Indicates whether the frame is empty (no payload).

Defined at line 81 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

uint16_t GetLength ()

Returns the frame length (PSDU length).

Defined at line 88 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

void SetLength (uint16_t aLength)

Sets the frame length.

Parameters

aLength [in] The frame length.

Defined at line 95 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

uint8_t GetChannel ()

Returns the channel used for transmission or reception.

Defined at line 102 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

uint8_t * GetPsdu ()

Returns a pointer to the PSDU.

Defined at line 109 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

const uint8_t * GetPsdu ()

Returns a pointer to the PSDU.

Defined at line 116 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

uint8_t * GetPsduStartingAt (uint16_t aIndex)

Returns a pointer to the PSDU starting at a given index.

Parameters

aIndex [in] The index to start from.

Defined at line 125 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

const uint8_t * GetPsduStartingAt (uint16_t aIndex)

Returns a pointer to the PSDU starting at a given index.

Parameters

aIndex [in] The index to start from.

Defined at line 134 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

Type GetRadioType ()

Gets the radio link type of the frame.

Defined at line 142 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp

void SetRadioType (Type aRadioType)

Sets the radio link type of the frame.

Parameters

aRadioType [in] A radio link type.

Defined at line 149 of file ../../third_party/openthread/src/core/radio/radio_frame.hpp