Home
last modified time | relevance | path

Searched refs:m16 (Results 1 – 12 of 12) sorted by relevance

/openthread-3.6.0/src/core/net/
Dip6_headers.hpp151 … return static_cast<uint8_t>((BigEndian::HostSwap16(mVerTcFlow.m16[0]) & kTrafficClassMask) >> in GetTrafficClass()
163 mVerTcFlow.m16[0] = in SetTrafficClass()
164 BigEndian::HostSwap16((BigEndian::HostSwap16(mVerTcFlow.m16[0]) & ~kTrafficClassMask) | in SetTrafficClass()
176 …return static_cast<uint8_t>((BigEndian::HostSwap16(mVerTcFlow.m16[0]) & kDscpMask) >> kDscpOffset); in GetDscp()
187 …mVerTcFlow.m16[0] = BigEndian::HostSwap16((BigEndian::HostSwap16(mVerTcFlow.m16[0]) & ~kDscpMask) | in SetDscp()
362 uint16_t m16[sizeof(uint32_t) / sizeof(uint16_t)]; member
Dicmp6.hpp175 uint16_t GetId(void) const { return BigEndian::HostSwap16(mData.m16[0]); } in GetId()
183 void SetId(uint16_t aId) { mData.m16[0] = BigEndian::HostSwap16(aId); } in SetId()
191 uint16_t GetSequence(void) const { return BigEndian::HostSwap16(mData.m16[1]); } in GetSequence()
199 void SetSequence(uint16_t aSequence) { mData.m16[1] = BigEndian::HostSwap16(aSequence); } in SetSequence()
Dip6_address.cpp74 … ((mPrefix.mFields.m16[0] & BigEndian::HostSwap16(0xffc0)) == BigEndian::HostSwap16(0xfe80)); in IsLinkLocal()
253 …return (mFields.m32[0] == BigEndian::HostSwap32(0xfdffffff) && mFields.m16[2] == BigEndian::HostSw… in IsReservedSubnetAnycast()
286 mFields.m16[2] = BigEndian::HostSwap16(0xfe00); in SetToLocator()
287 mFields.m16[3] = BigEndian::HostSwap16(aLocator); in SetToLocator()
293 …return (mFields.m32[0] == BigEndian::HostSwap32(0x000000ff) && mFields.m16[2] == BigEndian::HostSw… in IsLocator()
348 return (mFields.m16[0] & BigEndian::HostSwap16(0xffc0)) == BigEndian::HostSwap16(0xfe80); in IsLinkLocal()
618 mFields.m16[index++] = BigEndian::HostSwap16(static_cast<uint16_t>(value)); in ParseFrom()
641 …memmove(&mFields.m16[endIndex - wordsToCopy], &mFields.m16[colonIndex], wordsToCopy * sizeof(uint1… in ParseFrom()
642 memset(&mFields.m16[colonIndex], 0, (endIndex - index) * sizeof(uint16_t)); in ParseFrom()
676 AppendHexWords(aWriter, static_cast<uint8_t>(GetArrayLength(mFields.m16))); in ToString()
[all …]
Dip6_address.hpp122 uint16_t GetSubnetId(void) const { return BigEndian::HostSwap16(mPrefix.mFields.m16[3]); } in GetSubnetId()
163 …void SetSubnetId(uint16_t aSubnetId) { mPrefix.mFields.m16[3] = BigEndian::HostSwap16(aSubnetId); } in SetSubnetId()
530 uint16_t GetLocator(void) const { return BigEndian::HostSwap16(mFields.m16[3]); } in GetLocator()
541 void SetLocator(uint16_t aLocator) { mFields.m16[3] = BigEndian::HostSwap16(aLocator); } in SetLocator()
/openthread-3.6.0/tests/unit/
Dtest_multicast_listeners_table.cpp103 address.mFields.m16[7] = BigEndian::HostSwap16(i); in TestMulticastListenersTable()
144 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable()
147 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable()
Dtest_ndproxy_table.cpp54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
/openthread-3.6.0/src/core/utils/
Dheap.hpp253 … Block &BlockAt(uint16_t aOffset) { return *reinterpret_cast<Block *>(&mMemory.m16[aOffset / 2]); } in BlockAt()
344 uint16_t m16[kMemorySize / sizeof(uint16_t)]; member
/openthread-3.6.0/include/openthread/
Dicmp6.h101 uint16_t m16[OT_ICMP6_HEADER_DATA_SIZE / sizeof(uint16_t)]; member
Dip6.h75 uint16_t m16[OT_IP6_IID_SIZE / sizeof(uint16_t)]; ///< 16-bit fields member
135 uint16_t m16[OT_IP6_ADDRESS_SIZE / sizeof(uint16_t)]; ///< 16-bit fields member
/openthread-3.6.0/src/core/mac/
Dmac_frame.hpp68 void Init(void) { mFields.m16 = 0; } in Init()
85 …uint16_t GetId(void) const { return (LittleEndian::HostSwap16(mFields.m16) & kIdMask) >> kIdOffset… in GetId()
95 mFields.m16 = LittleEndian::HostSwap16((LittleEndian::HostSwap16(mFields.m16) & ~kIdMask) | in SetId()
132 uint16_t m16; member
/openthread-3.6.0/src/core/thread/
Dlowpan.cpp723 aIp6Header.GetSource().mFields.m16[0] = BigEndian::HostSwap16(0xfe80); in DecompressBaseHeader()
762 aIp6Header.GetDestination().mFields.m16[0] = BigEndian::HostSwap16(0xfe80); in DecompressBaseHeader()
Dmle.cpp137 mLinkLocalAllThreadNodes.GetAddress().mFields.m16[0] = BigEndian::HostSwap16(0xff32); in Mle()
138 mLinkLocalAllThreadNodes.GetAddress().mFields.m16[7] = BigEndian::HostSwap16(0x0001); in Mle()
141 mRealmLocalAllThreadNodes.GetAddress().mFields.m16[0] = BigEndian::HostSwap16(0xff33); in Mle()
142 mRealmLocalAllThreadNodes.GetAddress().mFields.m16[7] = BigEndian::HostSwap16(0x0001); in Mle()