Home
last modified time | relevance | path

Searched refs:aFcf (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/src/core/mac/
Dmac_frame.hpp847 void SetFrameControlField(uint16_t aFcf);
862 static uint8_t GetFcfSize(uint16_t aFcf) { return IsShortFcf(aFcf) ? kShortFcfSize : kFcfSize; } in GetFcfSize() argument
870 template <uint16_t kValue, uint16_t kMpValue> static uint16_t Select(uint16_t aFcf) in Select() argument
872 return IsMultipurpose(aFcf) ? kMpValue : kValue; in Select()
878 template <uint16_t kValue, uint16_t kMpValue> static uint16_t MaskFcf(uint16_t aFcf) in MaskFcf() argument
880 return aFcf & Select<kValue, kMpValue>(aFcf); in MaskFcf()
883 static uint16_t GetFcfDstAddr(uint16_t aFcf) in GetFcfDstAddr() argument
885 …rn MaskFcf<kFcfDstAddrMask, kMpFcfDstAddrMask>(aFcf) >> Select<kFcfDstAddrShift, kMpFcfDstAddrShif… in GetFcfDstAddr()
888 static uint16_t GetFcfSrcAddr(uint16_t aFcf) in GetFcfSrcAddr() argument
890 …rn MaskFcf<kFcfSrcAddrMask, kMpFcfSrcAddrMask>(aFcf) >> Select<kFcfSrcAddrShift, kMpFcfSrcAddrShif… in GetFcfSrcAddr()
[all …]
Dmac_frame.cpp256 void Frame::SetFrameControlField(uint16_t aFcf) in SetFrameControlField() argument
259 if (IsShortFcf(aFcf)) in SetFrameControlField()
261 OT_ASSERT((aFcf >> 8) == 0); in SetFrameControlField()
262 mPsdu[0] = static_cast<uint8_t>(aFcf); in SetFrameControlField()
267 LittleEndian::WriteUint16(aFcf, mPsdu); in SetFrameControlField()
397 bool Frame::IsDstPanIdPresent(uint16_t aFcf) in IsDstPanIdPresent() argument
402 if (IsMultipurpose(aFcf)) in IsDstPanIdPresent()
404 present = (aFcf & kMpFcfPanidPresent) != 0; in IsDstPanIdPresent()
408 if (IsVersion2015(aFcf)) in IsDstPanIdPresent()
433 switch (aFcf & (kFcfDstAddrMask | kFcfSrcAddrMask | kFcfPanidCompression)) in IsDstPanIdPresent()
[all …]