Searched refs:kVersionMask (Results 1 – 7 of 7) sorted by relevance
101 bool IsVersionValid(void) const { return (mControl & kVersionMask) == kVersion; } in IsVersionValid()240 static constexpr uint8_t kVersionMask = (7 << 5); // Bits 5-7 specify the version. member in ot::Trel::Header
1057 mFlags = (mFlags & ~kVersionMask) | ((aVersion << kVersionOffset) & kVersionMask); in SetVersion()1089 static constexpr uint8_t kVersionMask = 0xf << kVersionOffset; member in ot::MeshCoP::DiscoveryRequestTlv1142 mFlags = (mFlags & ~kVersionMask) | ((aVersion << kVersionOffset) & kVersionMask); in SetVersion()1201 static constexpr uint8_t kVersionMask = 0xf << kVersionOffset; member in ot::MeshCoP::DiscoveryResponseTlv
338 bool IsVersion4(void) const { return (mVersIhl & kVersionMask) == kVersion4; } in IsVersion4()559 static constexpr uint8_t kVersionMask = 0xf0; // Use with `mVersIhl` member in ot::Ip4::Header
125 bool IsVersion6(void) const { return (mVerTcFlow.m8[0] & kVersionMask) == kVersion6; } in IsVersion6()349 static constexpr uint8_t kVersionMask = 0xf0; // Use with `mVerTcFlow.m8[0]` member in ot::Ip6::Header
224 static constexpr uint8_t kVersionMask = 0x07 << kVersionOffset; // Version field mask. member in ot::Sntp::Client::Header
249 return (GetHelpData().mHeader.mVersionTypeToken & kVersionMask) >> kVersionOffset; in GetVersion()260 GetHelpData().mHeader.mVersionTypeToken &= ~kVersionMask; in SetVersion()834 static constexpr uint8_t kVersionMask = 0x3 << kVersionOffset; member in ot::Coap::Message
1607 static constexpr uint8_t kVersionMask = 0xf << kVersionOffset; ///< Version field mask. member in ot::Mac::BeaconPayload1691 mFlags &= ~kVersionMask; in SetJoiningPermitted()