Home
last modified time | relevance | path

Searched refs:ClampToUint16 (Results 1 – 4 of 4) sorted by relevance

/openthread-latest/tests/unit/
Dtest_serial_number.cpp103 VerifyOrQuit(ClampToUint16(u32) == 100); in TestNumUtils()
105 VerifyOrQuit(ClampToUint16(u32) == 256); in TestNumUtils()
107 VerifyOrQuit(ClampToUint16(u32) == 0xffff); in TestNumUtils()
109 VerifyOrQuit(ClampToUint16(u32) == 0xffff); in TestNumUtils()
111 VerifyOrQuit(ClampToUint16(u32) == 0xffff); in TestNumUtils()
/openthread-latest/src/core/common/
Dnum_utils.hpp121 template <typename UintType> uint16_t ClampToUint16(UintType aValue) in ClampToUint16() function
/openthread-latest/src/core/utils/
Dping_sender.cpp203 reply.mRoundTripTime = ClampToUint16(TimerMilli::GetNow() - TimeMilli(timestamp)); in HandleIcmpReceive()
/openthread-latest/src/core/api/
Dlink_api.cpp457 periodInTenSymbolsUnit = ClampToUint16(aPeriod / kUsPerTenSymbols); in otLinkSetCslPeriod()