/openthread-3.6.0/src/core/thread/ |
D | link_quality.hpp | 138 Error Add(int8_t aRss); 146 int8_t GetAverage(void) const; 269 uint8_t ComputeLinkMargin(int8_t aNoiseFloor, int8_t aRss); 290 int8_t GetTypicalRssForLinkQuality(int8_t aNoiseFloor, LinkQuality aLinkQuality); 300 friend int8_t GetTypicalRssForLinkQuality(int8_t aNoiseFloor, LinkQuality aLinkQuality); 337 void AddRss(int8_t aRss); 345 int8_t GetAverageRss(void) const { return mRssAverager.GetAverage(); } in GetAverageRss() 395 int8_t GetLastRss(void) const { return mLastRss; } in GetLastRss() 455 … static constexpr int8_t kLinkQuality3LinkMargin = 50; // link margin for Link Quality 3 (21 - 255) 456 … static constexpr int8_t kLinkQuality2LinkMargin = 15; // link margin for Link Quality 3 (21 - 255) [all …]
|
D | link_quality.cpp | 62 Error RssAverager::Add(int8_t aRss) in Add() 71 aRss = Min<int8_t>(aRss, 0); in Add() 87 int8_t RssAverager::GetAverage(void) const in GetAverage() 89 int8_t average; in GetAverage() 93 average = -static_cast<int8_t>(mAverage >> kPrecisionBitShift); in GetAverage() 141 void LinkQualityInfo::AddRss(int8_t aRss) in AddRss() 177 uint8_t ComputeLinkMargin(int8_t aNoiseFloor, int8_t aRss) in ComputeLinkMargin() 179 int8_t linkMargin = aRss - aNoiseFloor; in ComputeLinkMargin() 194 int8_t GetTypicalRssForLinkQuality(int8_t aNoiseFloor, LinkQuality aLinkQuality) in GetTypicalRssForLinkQuality() 196 int8_t linkMargin = 0; in GetTypicalRssForLinkQuality()
|
D | mle_types.hpp | 333 …static constexpr int8_t kDefaultAdjustment = OPENTHREAD_CONFIG_MLE_DEFAULT_LEADER_WEIGHT_A… 335 static constexpr int8_t kBorderRouterInc = +1; 336 static constexpr int8_t kCcmBorderRouterInc = +8; 337 static constexpr int8_t kIsUnstableInc = -4; 338 static constexpr int8_t kPowerBatteryInc = -8; 339 static constexpr int8_t kPowerExternalInc = 0; 340 static constexpr int8_t kPowerExternalStableInc = +4; 341 static constexpr int8_t kPowerExternalUnstableInc = -4; 342 static constexpr int8_t kMinAdjustment = -16; 343 static constexpr int8_t kMaxAdjustment = +16;
|
D | mle_router.hpp | 462 int8_t GetAssignParentPriority(void) const { return mParentPriority; } in GetAssignParentPriority() 473 Error SetAssignParentPriority(int8_t aParentPriority); 613 static constexpr int8_t kParentPriorityHigh = 1; 614 static constexpr int8_t kParentPriorityMedium = 0; 615 static constexpr int8_t kParentPriorityLow = -1; 616 static constexpr int8_t kParentPriorityUnspecified = -2; 752 int8_t mParentPriority; ///< The assigned parent priority value, -2 means not assigned.
|
/openthread-3.6.0/src/core/common/ |
D | preference.hpp | 52 static constexpr int8_t kHigh = 1; ///< High preference. 53 static constexpr int8_t kMedium = 0; ///< Medium preference. 54 static constexpr int8_t kLow = -1; ///< Low preference. 67 static uint8_t To2BitUint(int8_t aPrf); 86 static int8_t From2BitUint(uint8_t a2BitUint); 98 static bool IsValid(int8_t aPrf); 120 static const char *ToString(int8_t aPrf);
|
D | preference.cpp | 39 uint8_t Preference::To2BitUint(int8_t aPrf) { return (aPrf == 0) ? k2BitMedium : ((aPrf > 0) ? k2Bi… in To2BitUint() 41 int8_t Preference::From2BitUint(uint8_t a2BitUint) in From2BitUint() 43 static const int8_t kPreferences[] = { in From2BitUint() 53 bool Preference::IsValid(int8_t aPrf) { return (aPrf == kHigh) || (aPrf == kMedium) || (aPrf == kLo… in IsValid() 55 const char *Preference::ToString(int8_t aPrf) { return (aPrf == 0) ? "medium" : ((aPrf > 0) ? "high… in ToString()
|
D | numeric_limits.hpp | 75 template <> struct NumericLimits<int8_t> 77 static constexpr int8_t kMin = INT8_MIN; 78 static constexpr int8_t kMax = INT8_MAX;
|
D | num_utils.hpp | 147 template <typename IntType> int8_t ClampToInt8(IntType aValue) in ClampToInt8() 153 return static_cast<int8_t>(Clamp(aValue, static_cast<IntType>(NumericLimits<int8_t>::kMin), in ClampToInt8() 154 static_cast<IntType>(NumericLimits<int8_t>::kMax))); in ClampToInt8()
|
/openthread-3.6.0/src/core/mac/ |
D | mac_filter.hpp | 93 …static constexpr int8_t kFixedRssDisabled = OT_MAC_FILTER_FIXED_RSS_DISABLED; ///< Value when no f… 167 Error AddRssIn(const ExtAddress &aExtAddress, int8_t aRss); 188 void SetDefaultRssIn(int8_t aRss) { mDefaultRssIn = aRss; } in SetDefaultRssIn() 227 Error Apply(const ExtAddress &aExtAddress, int8_t &aRss) const; 252 int8_t mRssIn; // The RssIn value for this entry or `kFixedRssDisabled`. 263 int8_t mDefaultRssIn;
|
D | sub_mac.hpp | 189 void EnergyScanDone(int8_t aMaxRssi); 370 int8_t GetRssi(void) const; 392 int8_t GetNoiseFloor(void) const; 628 void HandleEnergyScanDone(int8_t aMaxRssi); 651 int8_t mEnergyScanMaxRssi;
|
/openthread-3.6.0/src/core/radio/ |
D | max_power_table.hpp | 40 static constexpr int8_t kPowerDefault = 30; ///< Default power 1 watt (30 dBm). 52 …int8_t GetTransmitPower(uint8_t aChannel) const { return mPowerTable[aChannel - Radio::kChannelMin… in GetTransmitPower() 61 …void SetTransmitPower(uint8_t aChannel, int8_t aPower) { mPowerTable[aChannel - Radio::kChannelMin… in SetTransmitPower() 83 int8_t mPowerTable[Radio::kChannelMax - Radio::kChannelMin + 1];
|
D | radio.hpp | 166 static constexpr int8_t kInvalidRssi = OT_RADIO_RSSI_INVALID; ///< Invalid RSSI value. 168 …static constexpr int8_t kDefaultReceiveSensitivity = -110; ///< Default receive sensitivity (in dB… 227 void HandleEnergyScanDone(int8_t aMaxRssi); 303 int8_t GetReceiveSensitivity(void) const; 385 Error GetTransmitPower(int8_t &aPower); 396 Error SetTransmitPower(int8_t aPower); 407 Error GetCcaEnergyDetectThreshold(int8_t &aThreshold); 418 Error SetCcaEnergyDetectThreshold(int8_t aThreshold); 603 int8_t GetRssi(void); 873 inline int8_t Radio::GetReceiveSensitivity(void) const { return otPlatRadioGetReceiveSensitivity(Ge… in GetReceiveSensitivity() [all …]
|
D | radio_platform.cpp | 108 extern "C" void otPlatRadioEnergyScanDone(otInstance *aInstance, int8_t aEnergyScanMaxRssi) in otPlatRadioEnergyScanDone() 154 extern "C" void otPlatRadioEnergyScanDone(otInstance *, int8_t) {} in otPlatRadioEnergyScanDone() argument 274 OT_TOOL_WEAK otError otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain) in otPlatRadioGetFemLnaGain() 282 OT_TOOL_WEAK otError otPlatRadioSetFemLnaGain(otInstance *aInstance, int8_t aGain) in otPlatRadioSetFemLnaGain() 290 …or otPlatRadioSetChannelMaxTransmitPower(otInstance *aInstance, uint8_t aChannel, int8_t aMaxPower) in otPlatRadioSetChannelMaxTransmitPower()
|
/openthread-3.6.0/tests/unit/ |
D | test_link_quality.cpp | 63 const int8_t *mRssList; // Array of RSS values. 68 int8_t sNoiseFloor = -100; // dBm 71 void VerifyRawRssValue(int8_t aAverage, uint16_t aRawValue) in VerifyRawRssValue() 90 int8_t rss, ave, min, max; in TestLinkQualityData() 123 int8_t average = aRssAverager.GetAverage(); in VerifyRawRssValue() 140 int8_t GetRandomRss(void) in GetRandomRss() 145 return -static_cast<int8_t>(value); in GetRandomRss() 151 int8_t rss, rss2, ave; in TestRssAveraging() 154 const int8_t rssValues[] = {kMinRssValue, -70, -40, -41, -10, kMaxRssValue}; in TestRssAveraging() 334 const int8_t rssList1[] = {-81, -80, -79, -78, -76, -80, -77, -75, -77, -76, -77, -74}; in TestLinkQualityCalculations() [all …]
|
/openthread-3.6.0/src/core/utils/ |
D | jam_detector.hpp | 118 void SetRssiThreshold(int8_t aThreshold); 125 int8_t GetRssiThreshold(void) const { return mRssiThreshold; } in GetRssiThreshold() 183 static constexpr int8_t kDefaultRssiThreshold = 0; 208 int8_t mRssiThreshold; // RSSI threshold for jam detection
|
/openthread-3.6.0/include/openthread/platform/ |
D | radio.h | 359 … int8_t mRssi; ///< Received signal strength indicator in dBm for received frames. 484 int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance); 537 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower); 552 otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower); 565 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold); 578 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold); 591 otError otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain); 603 otError otPlatRadioSetFemLnaGain(otInstance *aInstance, int8_t aGain); 953 int8_t otPlatRadioGetRssi(otInstance *aInstance); 980 extern void otPlatRadioEnergyScanDone(otInstance *aInstance, int8_t aEnergyScanMaxRssi); [all …]
|
/openthread-3.6.0/src/lib/spinel/ |
D | radio_spinel.hpp | 95 void (*mEnergyScanDone)(otInstance *aInstance, int8_t aMaxRssi); 289 otError GetTransmitPower(int8_t &aPower); 301 otError SetTransmitPower(int8_t aPower); 313 otError GetCcaEnergyDetectThreshold(int8_t &aThreshold); 325 otError SetCcaEnergyDetectThreshold(int8_t aThreshold); 337 otError GetFemLnaGain(int8_t &aGain); 349 otError SetFemLnaGain(int8_t aGain); 372 int8_t GetRssi(void); 384 int8_t GetReceiveSensitivity(void) const { return mRxSensitivity; } in GetReceiveSensitivity() 892 otError SetChannelMaxTransmitPower(uint8_t aChannel, int8_t aMaxPower); [all …]
|
/openthread-3.6.0/include/openthread/ |
D | link.h | 65 int8_t mRss; ///< Received Signal Strength in dBm. 106 int8_t mRssIn; ///< Received signal strength 389 int8_t mRssi; ///< RSSI (dBm) 407 int8_t mMaxRssi; ///< The max RSSI (dBm) 808 otError otLinkFilterAddRssIn(otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss); 838 void otLinkFilterSetDefaultRssIn(otInstance *aInstance, int8_t aRss); 916 uint8_t otLinkConvertRssToLinkQuality(otInstance *aInstance, int8_t aRss); 927 int8_t otLinkConvertLinkQualityToRss(otInstance *aInstance, uint8_t aLinkQuality);
|
D | mesh_diag.h | 257 int8_t mAverageRssi; ///< Average RSSI. 258 int8_t mLastRssi; ///< RSSI of last received frame. 363 int8_t mAverageRssi; ///< Average RSSI. 364 int8_t mLastRssi; ///< RSSI of last received frame.
|
D | jam_detection.h | 75 otError otJamDetectionSetRssiThreshold(otInstance *aInstance, int8_t aRssiThreshold); 84 int8_t otJamDetectionGetRssiThreshold(otInstance *aInstance);
|
D | thread.h | 99 int8_t mAverageRssi; ///< Average RSSI 100 int8_t mLastRssi; ///< Last observed RSSI 213 int8_t mRssi; ///< Rssi of the Parent 214 int8_t mPriority; ///< Parent priority 861 otError otThreadGetParentAverageRssi(otInstance *aInstance, int8_t *aParentRssi); 874 otError otThreadGetParentLastRssi(otInstance *aInstance, int8_t *aLastRssi);
|
D | thread_ftd.h | 67 int8_t mAverageRssi; ///< Average RSSI 68 int8_t mLastRssi; ///< Last observed RSSI 234 …int8_t mLeaderWeightAdjustment; ///< Weight adjustment. Should be -16 to +16 (clamped other… 724 int8_t otThreadGetParentPriority(otInstance *aInstance); 741 otError otThreadSetParentPriority(otInstance *aInstance, int8_t aParentPriority);
|
/openthread-3.6.0/examples/platforms/utils/ |
D | link_metrics.cpp | 42 static int8_t sNoiseFloor; ///< The noise floor used by Link Metrics. It should be set to the platf… 86 uint8_t GetEnhAckData(uint8_t aLqi, int8_t aRssi, uint8_t *aData) const in GetEnhAckData() 137 uint8_t GetLinkMargin(int8_t aRssi) const { return ComputeLinkMargin(sNoiseFloor, aRssi); } in GetLinkMargin() 180 void otLinkMetricsInit(int8_t aNoiseFloor) { sNoiseFloor = aNoiseFloor; } in otLinkMetricsInit() 236 uint8_t otLinkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uin… in otLinkMetricsEnhAckGenData()
|
D | link_metrics.h | 57 void otLinkMetricsInit(int8_t aNoiseFloor); 98 uint8_t otLinkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uin…
|
/openthread-3.6.0/third_party/mbedtls/repo/3rdparty/everest/include/everest/kremlin/internal/ |
D | debug.h | 29 int8_t : "0x%08" PRIx8, \ 40 int8_t : X, \
|