class TxFrame
Defined at line 889 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
Supports IEEE 802.15.4 MAC frame generation for transmission.
Public Methods
void CopyFrom (const TxFrame & aFromFrame)
Copies the PSDU and all attributes (except for frame link type) from another frame.
Parameters
void GenerateImmAck (const RxFrame & aFrame, bool aIsFramePending)
Generate Imm-Ack in this frame object.
Parameters
Error GenerateEnhAck (const RxFrame &aRxFrame,boolaIsFramePending,const uint8_t *aIeData,uint8_taIeLength)
Generate Enh-Ack in this frame object.
Parameters
void SetChannel (uint8_t aChannel)
Sets the channel on which to send the frame.
It also sets the `RxChannelAfterTxDone` to the same channel.
Parameters
Defined at line 952 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetTxPower (int8_t aTxPower)
Sets TX power to send the frame.
Parameters
Defined at line 963 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
uint8_t GetRxChannelAfterTxDone ()
Gets the RX channel after frame TX is done.
Defined at line 970 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetRxChannelAfterTxDone (uint8_t aChannel)
Sets the RX channel after frame TX is done.
Parameters
Defined at line 977 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
uint8_t GetMaxCsmaBackoffs ()
Returns the maximum number of backoffs the CSMA-CA algorithm will attempt before declaring a channel
access failure.
Equivalent to macMaxCSMABackoffs in IEEE 802.15.4-2006.
Defined at line 988 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetMaxCsmaBackoffs (uint8_t aMaxCsmaBackoffs)
Sets the maximum number of backoffs the CSMA-CA algorithm will attempt before declaring a channel
access failure.
Equivalent to macMaxCSMABackoffs in IEEE 802.15.4-2006.
Parameters
Defined at line 999 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
uint8_t GetMaxFrameRetries ()
Returns the maximum number of retries allowed after a transmission failure.
Equivalent to macMaxFrameRetries in IEEE 802.15.4-2006.
Defined at line 1008 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetMaxFrameRetries (uint8_t aMaxFrameRetries)
Sets the maximum number of retries allowed after a transmission failure.
Equivalent to macMaxFrameRetries in IEEE 802.15.4-2006.
Parameters
Defined at line 1017 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
bool IsARetransmission ()
Indicates whether or not the frame is a retransmission.
Defined at line 1025 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetIsARetransmission (bool aIsARetx)
Sets the retransmission flag attribute.
Parameters
Defined at line 1032 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
bool IsCsmaCaEnabled ()
Indicates whether or not CSMA-CA is enabled.
Defined at line 1040 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetCsmaCaEnabled (bool aCsmaCaEnabled)
Sets the CSMA-CA enabled attribute.
Parameters
Defined at line 1047 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
const Mac::KeyMaterial & GetAesKey ()
Returns the key used for frame encryption and authentication (AES CCM).
Defined at line 1054 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetAesKey (const Mac::KeyMaterial & aAesKey)
Sets the key used for frame encryption and authentication (AES CCM).
Parameters
Defined at line 1064 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
bool IsSecurityProcessed ()
Indicates whether or not the frame has security processed.
Defined at line 1098 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
bool IsHeaderUpdated ()
Indicates whether or not the frame header is updated.
Defined at line 1131 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void ProcessTransmitAesCcm (const ExtAddress & aExtAddress)
Performs AES CCM on the frame which is going to be sent.
Parameters
void RestoreTransmitSecurity (const ExtAddress & aExtAddress)
Restore the frame for transmit processing.
Parameters
void SetIsSecurityProcessed (bool aIsSecurityProcessed)
Sets the security processed flag attribute.
Parameters
Defined at line 1105 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
bool IsCslIePresent ()
Indicates whether or not the frame contains the CSL IE.
Defined at line 1116 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetCslIePresent (bool aCslPresent)
Sets the CSL IE present flag.
Parameters
Defined at line 1123 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetIsHeaderUpdated (bool aIsHeaderUpdated)
Sets the header updated flag attribute.
Parameters
Defined at line 1138 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
uint32_t GetTxDelay ()
Gets the TX delay field for the frame.
Defined at line 1214 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetTxDelay (uint32_t aTxDelay)
Set TX delay field for the frame.
Parameters
Defined at line 1221 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
RadioTime32 GetTxDelayBaseTime ()
Gets the TX delay base time field for the frame.
Defined at line 1228 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp
void SetTxDelayBaseTime (RadioTime32 aTxDelayBaseTime)
Set TX delay base time field for the frame.
Parameters
Defined at line 1235 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp