/openthread-latest/src/core/thread/ |
D | link_quality.hpp | 130 Error Add(int8_t aRss); 137 int8_t GetAverage(void) const; 250 uint8_t ComputeLinkMargin(int8_t aNoiseFloor, int8_t aRss); 269 int8_t GetTypicalRssForLinkQuality(int8_t aNoiseFloor, LinkQuality aLinkQuality); 278 friend int8_t GetTypicalRssForLinkQuality(int8_t aNoiseFloor, LinkQuality aLinkQuality); 310 void AddRss(int8_t aRss); 317 int8_t GetAverageRss(void) const { return mRssAverager.GetAverage(); } in GetAverageRss() 362 int8_t GetLastRss(void) const { return mLastRss; } in GetLastRss() 418 … static constexpr int8_t kLinkQuality3LinkMargin = 50; // link margin for Link Quality 3 (21 - 255) 419 … static constexpr int8_t kLinkQuality2LinkMargin = 15; // link margin for Link Quality 3 (21 - 255) [all …]
|
D | link_quality.cpp | 57 Error RssAverager::Add(int8_t aRss) in Add() 66 aRss = Min<int8_t>(aRss, 0); in Add() 82 int8_t RssAverager::GetAverage(void) const in GetAverage() 84 int8_t average; in GetAverage() 88 average = -static_cast<int8_t>(mAverage >> kPrecisionBitShift); in GetAverage() 140 void LinkQualityInfo::AddRss(int8_t aRss) in AddRss() 176 uint8_t ComputeLinkMargin(int8_t aNoiseFloor, int8_t aRss) in ComputeLinkMargin() 178 int8_t linkMargin = aRss - aNoiseFloor; in ComputeLinkMargin() 193 int8_t GetTypicalRssForLinkQuality(int8_t aNoiseFloor, LinkQuality aLinkQuality) in GetTypicalRssForLinkQuality() 195 int8_t linkMargin = 0; in GetTypicalRssForLinkQuality()
|
D | mle_types.hpp | 346 …static constexpr int8_t kDefaultAdjustment = OPENTHREAD_CONFIG_MLE_DEFAULT_LEADER_WEIGHT_A… 348 static constexpr int8_t kBorderRouterInc = +1; 349 static constexpr int8_t kCcmBorderRouterInc = +8; 350 static constexpr int8_t kIsUnstableInc = -4; 351 static constexpr int8_t kPowerBatteryInc = -8; 352 static constexpr int8_t kPowerExternalInc = 0; 353 static constexpr int8_t kPowerExternalStableInc = +4; 354 static constexpr int8_t kPowerExternalUnstableInc = -4; 355 static constexpr int8_t kMinAdjustment = -16; 356 static constexpr int8_t kMaxAdjustment = +16;
|
D | mle_router.hpp | 390 int8_t GetAssignParentPriority(void) const { return mParentPriority; } in GetAssignParentPriority() 400 Error SetAssignParentPriority(int8_t aParentPriority); 544 static constexpr int8_t kParentPriorityHigh = 1; 545 static constexpr int8_t kParentPriorityMedium = 0; 546 static constexpr int8_t kParentPriorityLow = -1; 547 static constexpr int8_t kParentPriorityUnspecified = -2; 699 int8_t mParentPriority;
|
/openthread-latest/src/core/common/ |
D | preference.hpp | 51 static constexpr int8_t kHigh = 1; ///< High preference. 52 static constexpr int8_t kMedium = 0; ///< Medium preference. 53 static constexpr int8_t kLow = -1; ///< Low preference. 65 static uint8_t To2BitUint(int8_t aPrf); 83 static int8_t From2BitUint(uint8_t a2BitUint); 94 static bool IsValid(int8_t aPrf); 114 static const char *ToString(int8_t aPrf);
|
D | preference.cpp | 38 uint8_t Preference::To2BitUint(int8_t aPrf) { return (aPrf == 0) ? k2BitMedium : ((aPrf > 0) ? k2Bi… in To2BitUint() 40 int8_t Preference::From2BitUint(uint8_t a2BitUint) in From2BitUint() 42 static const int8_t kPreferences[] = { in From2BitUint() 52 bool Preference::IsValid(int8_t aPrf) { return (aPrf == kHigh) || (aPrf == kMedium) || (aPrf == kLo… in IsValid() 54 const char *Preference::ToString(int8_t aPrf) { return (aPrf == 0) ? "medium" : ((aPrf > 0) ? "high… in ToString()
|
D | num_utils.hpp | 141 template <typename IntType> int8_t ClampToInt8(IntType aValue) in ClampToInt8() 147 return static_cast<int8_t>(Clamp(aValue, static_cast<IntType>(NumericLimits<int8_t>::kMin), in ClampToInt8() 148 static_cast<IntType>(NumericLimits<int8_t>::kMax))); in ClampToInt8()
|
D | numeric_limits.hpp | 72 template <> struct NumericLimits<int8_t> 74 static constexpr int8_t kMin = INT8_MIN; 75 static constexpr int8_t kMax = INT8_MAX;
|
/openthread-latest/src/core/mac/ |
D | mac_filter.hpp | 88 …static constexpr int8_t kFixedRssDisabled = OT_MAC_FILTER_FIXED_RSS_DISABLED; ///< Value when no f… 154 Error AddRssIn(const ExtAddress &aExtAddress, int8_t aRss); 173 void SetDefaultRssIn(int8_t aRss) { mDefaultRssIn = aRss; } in SetDefaultRssIn() 208 Error Apply(const ExtAddress &aExtAddress, int8_t &aRss) const; 232 int8_t mRssIn; // The RssIn value for this entry or `kFixedRssDisabled`. 243 int8_t mDefaultRssIn;
|
D | sub_mac.hpp | 180 void EnergyScanDone(int8_t aMaxRssi); 355 int8_t GetRssi(void) const; 375 int8_t GetNoiseFloor(void) const; 626 void HandleEnergyScanDone(int8_t aMaxRssi); 650 int8_t mEnergyScanMaxRssi;
|
/openthread-latest/src/core/radio/ |
D | radio.hpp | 56 static constexpr int8_t kRadioPowerInvalid = OT_RADIO_POWER_INVALID; ///< Invalid TX power value 125 static constexpr int8_t kInvalidRssi = OT_RADIO_RSSI_INVALID; ///< Invalid RSSI value. 127 …static constexpr int8_t kDefaultReceiveSensitivity = -110; ///< Default receive sensitivity (in dB… 181 void HandleEnergyScanDone(int8_t aMaxRssi); 320 int8_t GetReceiveSensitivity(void) const; 401 Error GetTransmitPower(int8_t &aPower); 411 Error SetTransmitPower(int8_t aPower); 421 Error GetCcaEnergyDetectThreshold(int8_t &aThreshold); 431 Error SetCcaEnergyDetectThreshold(int8_t aThreshold); 609 int8_t GetRssi(void); [all …]
|
D | max_power_table.hpp | 39 static constexpr int8_t kPowerDefault = 30; ///< Default power 1 watt (30 dBm). 50 …int8_t GetTransmitPower(uint8_t aChannel) const { return mPowerTable[aChannel - Radio::kChannelMin… in GetTransmitPower() 58 …void SetTransmitPower(uint8_t aChannel, int8_t aPower) { mPowerTable[aChannel - Radio::kChannelMin… in SetTransmitPower() 79 int8_t mPowerTable[Radio::kChannelMax - Radio::kChannelMin + 1];
|
/openthread-latest/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-latest/include/openthread/platform/ |
D | radio.h | 342 int8_t mTxPower; 398 … int8_t mRssi; ///< Received signal strength indicator in dBm for received frames. 517 int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance); 584 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower); 598 otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower); 610 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold); 622 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold); 634 otError otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain); 645 otError otPlatRadioSetFemLnaGain(otInstance *aInstance, int8_t aGain); 985 int8_t otPlatRadioGetRssi(otInstance *aInstance); [all …]
|
/openthread-latest/src/lib/spinel/ |
D | radio_spinel.hpp | 85 void (*mEnergyScanDone)(otInstance *aInstance, int8_t aMaxRssi); 280 otError GetTransmitPower(int8_t &aPower); 291 otError SetTransmitPower(int8_t aPower); 302 otError GetCcaEnergyDetectThreshold(int8_t &aThreshold); 313 otError SetCcaEnergyDetectThreshold(int8_t aThreshold); 324 otError GetFemLnaGain(int8_t &aGain); 335 otError SetFemLnaGain(int8_t aGain); 349 int8_t GetRssi(void); 360 int8_t GetReceiveSensitivity(void) const { return mRxSensitivity; } in GetReceiveSensitivity() 872 otError SetChannelMaxTransmitPower(uint8_t aChannel, int8_t aMaxPower); [all …]
|
/openthread-latest/src/core/utils/ |
D | jam_detector.hpp | 113 void SetRssiThreshold(int8_t aThreshold); 120 int8_t GetRssiThreshold(void) const { return mRssiThreshold; } in GetRssiThreshold() 176 static constexpr int8_t kDefaultRssiThreshold = 0; 201 int8_t mRssiThreshold; // RSSI threshold for jam detection
|
/openthread-latest/include/openthread/ |
D | mesh_diag.h | 241 int8_t mAverageRssi; ///< Average RSSI. 242 int8_t mLastRssi; ///< RSSI of last received frame. 342 int8_t mAverageRssi; ///< Average RSSI. 343 int8_t mLastRssi; ///< RSSI of last received frame.
|
D | link.h | 81 int8_t mRssIn; ///< Received signal strength 328 int8_t mRssi; ///< RSSI (dBm) 345 int8_t mMaxRssi; ///< The max RSSI (dBm) 734 otError otLinkFilterAddRssIn(otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss); 762 void otLinkFilterSetDefaultRssIn(otInstance *aInstance, int8_t aRss); 834 uint8_t otLinkConvertRssToLinkQuality(otInstance *aInstance, int8_t aRss); 844 int8_t otLinkConvertLinkQualityToRss(otInstance *aInstance, uint8_t aLinkQuality);
|
D | thread_ftd.h | 65 int8_t mAverageRssi; ///< Average RSSI 66 int8_t mLastRssi; ///< Last observed RSSI 222 …int8_t mLeaderWeightAdjustment; ///< Weight adjustment. Should be -16 to +16 (clamped other… 689 int8_t otThreadGetParentPriority(otInstance *aInstance); 705 otError otThreadSetParentPriority(otInstance *aInstance, int8_t aParentPriority);
|
D | thread.h | 103 int8_t mAverageRssi; ///< Average RSSI 104 int8_t mLastRssi; ///< Last observed RSSI 210 int8_t mRssi; ///< Rssi of the Parent 211 int8_t mPriority; ///< Parent priority 824 otError otThreadGetParentAverageRssi(otInstance *aInstance, int8_t *aParentRssi); 836 otError otThreadGetParentLastRssi(otInstance *aInstance, int8_t *aLastRssi);
|
/openthread-latest/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… 83 uint8_t GetEnhAckData(uint8_t aLqi, int8_t aRssi, uint8_t *aData) const in GetEnhAckData() 132 uint8_t GetLinkMargin(int8_t aRssi) const { return ComputeLinkMargin(sNoiseFloor, aRssi); } in GetLinkMargin() 175 void otLinkMetricsInit(int8_t aNoiseFloor) in otLinkMetricsInit() 235 uint8_t otLinkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uin… in otLinkMetricsEnhAckGenData()
|
D | link_metrics.h | 55 void otLinkMetricsInit(int8_t aNoiseFloor); 94 uint8_t otLinkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uin…
|
/openthread-latest/examples/platforms/simulation/ |
D | radio.c | 79 static int8_t sEnergyScanResult = OT_RADIO_RSSI_INVALID; 119 static int8_t sTxPower = 0; 120 static int8_t sCcaEdThresh = -74; 121 static int8_t sLnaGain = 0; 129 static int8_t sChannelMaxTransmitPower[kMaxChannel - kMinChannel + 1]; 152 static int8_t GetRssi(uint16_t aChannel); 530 int8_t otPlatRadioGetRssi(otInstance *aInstance) in otPlatRadioGetRssi() 538 static int8_t GetRssi(uint16_t aChannel) in GetRssi() 540 int8_t rssi = SIM_LOW_RSSI_SAMPLE; in GetRssi() 931 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower) in otPlatRadioGetTransmitPower() [all …]
|
/openthread-latest/tests/nexus/platform/ |
D | nexus_radio.cpp | 48 int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance) in otPlatRadioGetReceiveSensitivity() 145 int8_t otPlatRadioGetRssi(otInstance *aInstance) in otPlatRadioGetRssi() 227 otError otPlatRadioGetTransmitPower(otInstance *, int8_t *) { return kErrorNotImplemented; } in otPlatRadioGetTransmitPower() argument 228 otError otPlatRadioSetTransmitPower(otInstance *, int8_t) { return kErrorNotImplemented; } in otPlatRadioSetTransmitPower() argument 229 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *, int8_t *) { return kErrorNotImplemente… in otPlatRadioGetCcaEnergyDetectThreshold() argument 230 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *, int8_t) { return kErrorNotImplemented;… in otPlatRadioSetCcaEnergyDetectThreshold() argument 231 otError otPlatRadioGetFemLnaGain(otInstance *, int8_t *) { return kErrorNotImplemented; } in otPlatRadioGetFemLnaGain() argument 232 otError otPlatRadioSetFemLnaGain(otInstance *, int8_t) { return kErrorNotImplemented; } in otPlatRadioSetFemLnaGain() argument
|
/openthread-latest/src/posix/platform/ |
D | radio.cpp | 111 int8_t value; in ProcessRadioUrl() 166 constexpr int8_t kPowerDefault = 30; // Default power 1 watt (30 dBm). in ProcessMaxPowerTable() 170 int8_t power = kPowerDefault; in ProcessMaxPowerTable() 178 power = static_cast<int8_t>(strtol(str, nullptr, 0)); in ProcessMaxPowerTable() 315 int8_t otPlatRadioGetRssi(otInstance *aInstance) in otPlatRadioGetRssi() 455 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower) in otPlatRadioGetTransmitPower() 462 otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower) in otPlatRadioSetTransmitPower() 468 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold) in otPlatRadioGetCcaEnergyDetectThreshold() 475 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold) in otPlatRadioSetCcaEnergyDetectThreshold() 481 otError otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain) in otPlatRadioGetFemLnaGain() [all …]
|