Searched refs:aFcf (Results 1 – 2 of 2) sorted by relevance
847 void SetFrameControlField(uint16_t aFcf);862 static uint8_t GetFcfSize(uint16_t aFcf) { return IsShortFcf(aFcf) ? kShortFcfSize : kFcfSize; } in GetFcfSize() argument870 template <uint16_t kValue, uint16_t kMpValue> static uint16_t Select(uint16_t aFcf) in Select() argument872 return IsMultipurpose(aFcf) ? kMpValue : kValue; in Select()878 template <uint16_t kValue, uint16_t kMpValue> static uint16_t MaskFcf(uint16_t aFcf) in MaskFcf() argument880 return aFcf & Select<kValue, kMpValue>(aFcf); in MaskFcf()883 static uint16_t GetFcfDstAddr(uint16_t aFcf) in GetFcfDstAddr() argument885 …rn MaskFcf<kFcfDstAddrMask, kMpFcfDstAddrMask>(aFcf) >> Select<kFcfDstAddrShift, kMpFcfDstAddrShif… in GetFcfDstAddr()888 static uint16_t GetFcfSrcAddr(uint16_t aFcf) in GetFcfSrcAddr() argument890 …rn MaskFcf<kFcfSrcAddrMask, kMpFcfSrcAddrMask>(aFcf) >> Select<kFcfSrcAddrShift, kMpFcfSrcAddrShif… in GetFcfSrcAddr()[all …]
256 void Frame::SetFrameControlField(uint16_t aFcf) in SetFrameControlField() argument259 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() argument402 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 …]