Searched refs:mMask (Results 1 – 3 of 3) sorted by relevance
87 : mMask(0) in ChannelMask()98 : mMask(aMask) in ChannelMask()106 void Clear(void) { mMask = 0; } in Clear()114 uint32_t GetMask(void) const { return mMask; } in GetMask()122 void SetMask(uint32_t aMask) { mMask = aMask; } in SetMask()130 bool IsEmpty(void) const { return (mMask == 0); } in IsEmpty()138 bool IsSingleChannel(void) const { return ((mMask != 0) && ((mMask & (mMask - 1)) == 0)); } in IsSingleChannel()150 return (aChannel < sizeof(mMask) * CHAR_BIT) ? ((1UL << aChannel) & mMask) != 0 : false; in ContainsChannel()161 if (aChannel < sizeof(mMask) * CHAR_BIT) in AddChannel()163 mMask |= (1UL << aChannel); in AddChannel()[all …]
77 return (mMask[aIndex / 8] & (0x80 >> (aIndex % 8))) != 0; in Get()93 mMask[aIndex / 8] |= 0x80 >> (aIndex % 8); in Set()97 mMask[aIndex / 8] &= ~(0x80 >> (aIndex % 8)); in Set()112 for (uint8_t b : mMask) in HasAny()125 uint8_t mMask[BitVectorBytes(N)]; member in ot::BitVector
1353 SetMaskLength(sizeof(mMask)); in Init()1363 bool IsValid(void) const { return GetMaskLength() == sizeof(mMask); } in IsValid()1371 uint32_t GetMask(void) const { return Encoding::Reverse32(HostSwap32(mMask)); } in GetMask()1379 void SetMask(uint32_t aMask) { mMask = HostSwap32(Encoding::Reverse32(aMask)); } in SetMask()1382 uint32_t mMask; member in ot::MeshCoP::ChannelMaskEntry