Home
last modified time | relevance | path

Searched refs:kMax (Results 1 – 25 of 30) sorted by relevance

12

/openthread-latest/src/core/common/
Dnumeric_limits.hpp75 static constexpr int8_t kMax = INT8_MAX; member
81 static constexpr int16_t kMax = INT16_MAX; member
87 static constexpr int32_t kMax = INT32_MAX; member
93 static constexpr int64_t kMax = INT64_MAX; member
99 static constexpr uint8_t kMax = UINT8_MAX; member
105 static constexpr uint16_t kMax = UINT16_MAX; member
111 static constexpr uint32_t kMax = UINT32_MAX; member
117 static constexpr uint64_t kMax = UINT64_MAX; member
Dnum_utils.hpp107 return static_cast<uint8_t>(Min(aValue, static_cast<UintType>(NumericLimits<uint8_t>::kMax))); in ClampToUint8()
126 return static_cast<uint16_t>(Min(aValue, static_cast<UintType>(NumericLimits<uint16_t>::kMax))); in ClampToUint16()
148 static_cast<IntType>(NumericLimits<int8_t>::kMax))); in ClampToInt8()
Dlog.cpp214 constexpr uint16_t kIterFirstDataLine = NumericLimits<uint16_t>::kMax - 2; in GenerateNextHexDumpLine()
215 constexpr uint16_t kIterTableEndLine = NumericLimits<uint16_t>::kMax - 1; in GenerateNextHexDumpLine()
216 constexpr uint16_t kIterFinished = NumericLimits<uint16_t>::kMax; in GenerateNextHexDumpLine()
Dserial_number.hpp70 static constexpr UintType kNegativeMask = (NumericLimits<UintType>::kMax >> 1) + 1; in IsLess()
Doffset_range.cpp45 uint16_t maxLength = NumericLimits<uint16_t>::kMax - aOffset; in Init()
Dtrickle_timer.hpp74 static constexpr uint16_t kInfiniteRedundancyConstant = NumericLimits<uint16_t>::kMax;
Darray.hpp112 …typename TypeTraits::Conditional<kMaxSize <= NumericLimits<uint8_t>::kMax, uint8_t, uint16_t>::Typ…
Dstring.cpp202 return StringParseUint8(aString, aUint8, NumericLimits<uint8_t>::kMax); in StringParseUint8()
Dmessage.cpp162 rval = NumericLimits<uint16_t>::kMax; in GetFreeBufferCount()
181 rval = NumericLimits<uint16_t>::kMax; in GetTotalBufferCount()
/openthread-latest/src/core/meshcop/
Dtimestamp.cpp59 mSeconds16 = NumericLimits<uint16_t>::kMax; in SetToInvalid()
60 mSeconds32 = NumericLimits<uint32_t>::kMax; in SetToInvalid()
61 mTicksAndAuthFlag = NumericLimits<uint16_t>::kMax; in SetToInvalid()
66 …return (mSeconds16 != NumericLimits<uint16_t>::kMax) || (mSeconds32 != NumericLimits<uint32_t>::kM… in IsValid()
67 (mTicksAndAuthFlag != NumericLimits<uint16_t>::kMax); in IsValid()
/openthread-latest/tests/unit/
Dtest_serial_number.cpp44 static constexpr UintType kMax = NumericLimits<UintType>::kMax; in TestSerialNumber() local
45 static constexpr UintType kMid = kMax / 2; in TestSerialNumber()
47 …static const UintType kNumbers[] = {0, 1, 20, kMid - 1, kMid, kMid + 1, kMax - 20, kMax - 1, kMax}; in TestSerialNumber()
58 VerifyOrQuit(!SerialNumber::IsGreater<UintType>(number + kMax - 1, number)); in TestSerialNumber()
64 VerifyOrQuit(!SerialNumber::IsLess<UintType>(number - kMax + 1, number)); in TestSerialNumber()
/openthread-latest/src/core/utils/
Dpower_calibration.hpp151 static constexpr uint8_t kInvalidIndex = NumericLimits<uint8_t>::kMax;
152 static constexpr uint16_t kInvalidPower = NumericLimits<int16_t>::kMax;
157 static_assert(kMaxNumCalibratedPowers < NumericLimits<uint8_t>::kMax,
Dparse_cmdline.cpp96 VerifyOrExit(value <= NumericLimits<UintType>::kMax, error = kErrorInvalidArgs); in ParseUint()
157 VerifyOrExit((NumericLimits<IntType>::kMin <= value) && (value <= NumericLimits<IntType>::kMax), in ParseInt()
189 : static_cast<uint64_t>(NumericLimits<int32_t>::kMax)), in ParseAsInt32()
Dping_sender.hpp80 mMinRoundTripTime = NumericLimits<uint16_t>::kMax; in Clear()
Dpower_calibration.cpp145 int16_t minPower = NumericLimits<int16_t>::kMax; in GetPowerSettings()
/openthread-latest/src/core/radio/
Dradio_platform.cpp296 return NumericLimits<uint8_t>::kMax; in otPlatRadioGetCslAccuracy()
303 return NumericLimits<uint8_t>::kMax; in otPlatRadioGetCslUncertainty()
Dradio.hpp1105 inline uint64_t Radio::GetNow(void) { return NumericLimits<uint64_t>::kMax; } in GetNow()
1107 inline uint8_t Radio::GetCslAccuracy(void) { return NumericLimits<uint8_t>::kMax; } in GetCslAccuracy()
1109 inline uint8_t Radio::GetCslUncertainty(void) { return NumericLimits<uint8_t>::kMax; } in GetCslUncertainty()
/openthread-latest/src/core/thread/
Dlink_metrics.cpp769 value = value * NumericLimits<uint8_t>::kMax; in ScaleLinkMarginToRawValue()
782 value = DivideAndRoundToClosest<uint16_t>(value, NumericLimits<uint8_t>::kMax); in ScaleRawValueToLinkMargin()
794 value = value * NumericLimits<uint8_t>::kMax; in ScaleRssiToRawValue()
805 value = DivideAndRoundToClosest<int32_t>(value, NumericLimits<uint8_t>::kMax); in ScaleRawValueToRssi()
Denergy_scan_server.cpp140 if (mNumScanResults == NumericLimits<uint8_t>::kMax) in HandleScanResult()
Dlink_quality.cpp117 if (mCount < NumericLimits<uint8_t>::kMax) in Add()
Dnetwork_data_service.cpp251 constexpr uint8_t kMidValue = (NumericLimits<uint8_t>::kMax / 2) + 1; in FindPreferredDnsSrpAnycastInfo()
Dnetwork_data_leader.hpp503 static constexpr uint8_t kInvalidId = NumericLimits<uint8_t>::kMax;
/openthread-latest/src/cli/
Dcli_ping.cpp133 VerifyOrExit(timeout <= NumericLimits<uint16_t>::kMax, error = OT_ERROR_INVALID_ARGS); in Process()
/openthread-latest/src/core/net/
Dsrp_client.hpp969 if (mTimeoutFailureCount < NumericLimits<uint8_t>::kMax) in IncrementTimeoutFailureCount()
Dip6_address.cpp590 VerifyOrExit(value <= NumericLimits<uint16_t>::kMax); in ParseFrom()

12