Searched refs:kVersionMask (Results 1 – 8 of 8) 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
2156 mFlags = (mFlags & ~kVersionMask) | ((aVersion << kVersionOffset) & kVersionMask); in SetVersion()2188 static constexpr uint8_t kVersionMask = 0xf << kVersionOffset; member in ot::MeshCoP::DiscoveryRequestTlv2241 mFlags = (mFlags & ~kVersionMask) | ((aVersion << kVersionOffset) & kVersionMask); in SetVersion()2300 static constexpr uint8_t kVersionMask = 0xf << kVersionOffset; member in ot::MeshCoP::DiscoveryResponseTlv
293 bool IsVersion4(void) const { return (mVersIhl & kVersionMask) == kVersion4; } in IsVersion4()514 static constexpr uint8_t kVersionMask = 0xf0; // Use with `mVersIhl` member in ot::Ip4::Header
128 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
365 static constexpr uint8_t kVersionMask = 0x07 << kVersionOffset; // Version field mask. member in ot::Sntp::Header
250 return (GetHelpData().mHeader.mVersionTypeToken & kVersionMask) >> kVersionOffset; in GetVersion()261 GetHelpData().mHeader.mVersionTypeToken &= ~kVersionMask; in SetVersion()835 static constexpr uint8_t kVersionMask = 0x3 << kVersionOffset; member in ot::Coap::Message
459 constexpr uint32_t kVersionMask = 0x00FF0000; variable
1497 static constexpr uint8_t kVersionMask = 0xf << kVersionOffset; ///< Version field mask. member in ot::Mac::BeaconPayload1581 mFlags &= ~kVersionMask; in SetJoiningPermitted()