Searched refs:BitFlag (Results 1 – 2 of 2) sorted by relevance
399 uint8_t BitFlag(uint8_t aBit) const { return static_cast<uint8_t>(1U << (aBit % CHAR_BIT)); } in BitFlag() function in ot::MeshCoP::SteeringData401 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()
737 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