Home
last modified time | relevance | path

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

/openthread-3.5.0/src/core/meshcop/
Dmeshcop.hpp399 uint8_t BitFlag(uint8_t aBit) const { return static_cast<uint8_t>(1U << (aBit % CHAR_BIT)); } in BitFlag() function in ot::MeshCoP::SteeringData
401 bool GetBit(uint8_t aBit) const { return (m8[BitIndex(aBit)] & BitFlag(aBit)) != 0; } in GetBit()
402 void SetBit(uint8_t aBit) { m8[BitIndex(aBit)] |= BitFlag(aBit); } in SetBit()
403 void ClearBit(uint8_t aBit) { m8[BitIndex(aBit)] &= ~BitFlag(aBit); } in ClearBit()
/openthread-3.5.0/src/core/mac/
Dmac_types.hpp737 bool Contains(RadioType aType) const { return ((mBitMask & BitFlag(aType)) != 0); } in Contains()
745 void Add(RadioType aType) { mBitMask |= BitFlag(aType); } in Add()
767 void Remove(RadioType aType) { mBitMask &= ~BitFlag(aType); } in Remove()
799 …static uint8_t BitFlag(RadioType aType) { return static_cast<uint8_t>(1U << static_cast<uint8_t>(a… in BitFlag() function in ot::Mac::RadioTypes