Home
last modified time | relevance | path

Searched refs:int8_t (Results 1 – 25 of 98) sorted by relevance

1234

/openthread-2.7.6/src/core/thread/
Dlink_quality.hpp137 Error Add(int8_t aRss);
145 int8_t GetAverage(void) const;
265 void AddRss(int8_t aRss);
273 int8_t GetAverageRss(void) const { return mRssAverager.GetAverage(); } in GetAverageRss()
323 int8_t GetLastRss(void) const { return mLastRss; } in GetLastRss()
384 static uint8_t ConvertRssToLinkMargin(int8_t aNoiseFloor, int8_t aRss);
405 static uint8_t ConvertRssToLinkQuality(int8_t aNoiseFloor, int8_t aRss);
418 static int8_t ConvertLinkQualityToRss(int8_t aNoiseFloor, uint8_t aLinkQuality);
428 … static constexpr int8_t kLinkQuality3LinkMargin = 50; // link margin for Link Quality 3 (21 - 255)
429 … static constexpr int8_t kLinkQuality2LinkMargin = 15; // link margin for Link Quality 3 (21 - 255)
[all …]
Dlink_quality.cpp61 Error RssAverager::Add(int8_t aRss) in Add()
88 int8_t RssAverager::GetAverage(void) const in GetAverage()
90 int8_t average; in GetAverage()
94 average = -static_cast<int8_t>(mAverage >> kPrecisionBitShift); in GetAverage()
141 void LinkQualityInfo::AddRss(int8_t aRss) in AddRss()
177 uint8_t LinkQualityInfo::ConvertRssToLinkMargin(int8_t aNoiseFloor, int8_t aRss) in ConvertRssToLinkMargin()
179 int8_t linkMargin = aRss - aNoiseFloor; in ConvertRssToLinkMargin()
194 uint8_t LinkQualityInfo::ConvertRssToLinkQuality(int8_t aNoiseFloor, int8_t aRss) in ConvertRssToLinkQuality()
199 int8_t LinkQualityInfo::ConvertLinkQualityToRss(int8_t aNoiseFloor, uint8_t aLinkQuality) in ConvertLinkQualityToRss()
201 int8_t linkmargin = 0; in ConvertLinkQualityToRss()
Dnetwork_data_types.hpp73 enum RoutePreference : int8_t
90 inline bool IsRoutePreferenceValid(int8_t aPref) in IsRoutePreferenceValid()
105 inline uint8_t RoutePreferenceToValue(int8_t aPref) in RoutePreferenceToValue()
/openthread-2.7.6/src/core/mac/
Dmac_filter.hpp88 …static constexpr int8_t kFixedRssDisabled = OT_MAC_FILTER_FIXED_RSS_DISABLED; ///< Value when no f…
162 Error AddRssIn(const ExtAddress &aExtAddress, int8_t aRss);
183 void SetDefaultRssIn(int8_t aRss) { mDefaultRssIn = aRss; } in SetDefaultRssIn()
222 Error Apply(const ExtAddress &aExtAddress, int8_t &aRss);
230 int8_t mRssIn; // The RssIn value for this entry or `kFixedRssDisabled`.
240 int8_t mDefaultRssIn;
Dsub_mac.hpp104 …static constexpr int8_t kInvalidRssiValue = 127; ///< Invalid Received Signal Strength Indicator (…
188 void EnergyScanDone(int8_t aMaxRssi);
363 int8_t GetRssi(void) const;
384 int8_t GetNoiseFloor(void);
621 void HandleEnergyScanDone(int8_t aMaxRssi);
639 int8_t mEnergyScanMaxRssi;
Dmac_links.hpp294 static const int8_t kInvalidRssiValue = SubMac::kInvalidRssiValue; ///< Invalid RSSI value.
562 int8_t GetRssi(void) const in GetRssi()
602 int8_t GetNoiseFloor(void) in GetNoiseFloor()
664 static constexpr int8_t kDefaultNoiseFloor = -100;
/openthread-2.7.6/src/core/radio/
Dradio.hpp168 void HandleEnergyScanDone(int8_t aMaxRssi);
244 int8_t GetReceiveSensitivity(void);
306 Error GetTransmitPower(int8_t &aPower);
317 Error SetTransmitPower(int8_t aPower);
328 Error GetCcaEnergyDetectThreshold(int8_t &aThreshold);
339 Error SetCcaEnergyDetectThreshold(int8_t aThreshold);
507 int8_t GetRssi(void);
697 inline int8_t Radio::GetReceiveSensitivity(void) in GetReceiveSensitivity()
716 inline Error Radio::GetTransmitPower(int8_t &aPower) in GetTransmitPower()
721 inline Error Radio::SetTransmitPower(int8_t aPower) in SetTransmitPower()
[all …]
Dmax_power_table.hpp40 static constexpr int8_t kPowerDefault = 30; ///< Default power 1 watt (30 dBm).
52int8_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];
Dradio_platform.cpp107 extern "C" void otPlatRadioEnergyScanDone(otInstance *aInstance, int8_t aEnergyScanMaxRssi) in otPlatRadioEnergyScanDone()
161 extern "C" void otPlatRadioEnergyScanDone(otInstance *, int8_t) in otPlatRadioEnergyScanDone() argument
259 OT_TOOL_WEAK Error otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain) in otPlatRadioGetFemLnaGain()
267 OT_TOOL_WEAK Error otPlatRadioSetFemLnaGain(otInstance *aInstance, int8_t aGain) in otPlatRadioSetFemLnaGain()
275 …or otPlatRadioSetChannelMaxTransmitPower(otInstance *aInstance, uint8_t aChannel, int8_t aMaxPower) in otPlatRadioSetChannelMaxTransmitPower()
/openthread-2.7.6/src/lib/spinel/
Dradio_spinel.hpp211 otError GetTransmitPower(int8_t &aPower);
223 otError SetTransmitPower(int8_t aPower);
235 otError GetCcaEnergyDetectThreshold(int8_t &aThreshold);
247 otError SetCcaEnergyDetectThreshold(int8_t aThreshold);
259 otError GetFemLnaGain(int8_t &aGain);
271 otError SetFemLnaGain(int8_t aGain);
294 int8_t GetRssi(void);
306 int8_t GetReceiveSensitivity(void) const { return mRxSensitivity; } in GetReceiveSensitivity()
742 otError SetChannelMaxTransmitPower(uint8_t aChannel, int8_t aPower);
956 int8_t mRxSensitivity;
[all …]
/openthread-2.7.6/include/openthread/platform/
Dradio.h285int8_t mRssi; ///< Received signal strength indicator in dBm for received frames.
410 int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance);
463 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower);
478 otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower);
491 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold);
504 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold);
517 otError otPlatRadioGetFemLnaGain(otInstance *aInstance, int8_t *aGain);
529 otError otPlatRadioSetFemLnaGain(otInstance *aInstance, int8_t aGain);
811 int8_t otPlatRadioGetRssi(otInstance *aInstance);
837 extern void otPlatRadioEnergyScanDone(otInstance *aInstance, int8_t aEnergyScanMaxRssi);
[all …]
/openthread-2.7.6/tests/unit/
Dtest_link_quality.cpp61 const int8_t *mRssList; // Array of RSS values.
66 int8_t sNoiseFloor = -100; // dBm
69 void VerifyRawRssValue(int8_t aAverage, uint16_t aRawValue) in VerifyRawRssValue()
91 int8_t rss, ave, min, max; in TestLinkQualityData()
124 int8_t average = aRssAverager.GetAverage(); in VerifyRawRssValue()
144 int8_t GetRandomRss(void) in GetRandomRss()
149 return -static_cast<int8_t>(value); in GetRandomRss()
155 int8_t rss, rss2, ave; in TestRssAveraging()
158 const int8_t rssValues[] = {kMinRssValue, -70, -40, -41, -10, kMaxRssValue}; in TestRssAveraging()
338 const int8_t rssList1[] = {-81, -80, -79, -78, -76, -80, -77, -75, -77, -76, -77, -74}; in TestLinkQualityCalculations()
[all …]
/openthread-2.7.6/src/core/utils/
Djam_detector.hpp117 void SetRssiThreshold(int8_t aThreshold);
124 int8_t GetRssiThreshold(void) const { return mRssiThreshold; } in GetRssiThreshold()
182 static constexpr int8_t kDefaultRssiThreshold = 0;
208 int8_t mRssiThreshold; // RSSI threshold for jam detection
/openthread-2.7.6/examples/platforms/cc2538/
Dradio.c121 int8_t mTxPowerVal;
169 static int8_t sTxPower = 0;
181 static int8_t cc2538RadioGetRssiOffset(void);
246 void setTxPower(int8_t aTxPower) in setTxPower()
623 int8_t otPlatRadioGetRssi(otInstance *aInstance) in otPlatRadioGetRssi()
627 int8_t rssi = OT_RADIO_RSSI_INVALID; in otPlatRadioGetRssi()
665 static int8_t cc2538RadioGetRssiOffset(void) in cc2538RadioGetRssiOffset()
733 … sReceiveFrame.mInfo.mRxInfo.mRssi = (int8_t)HWREG(RFCORE_SFR_RFDATA) - cc2538RadioGetRssiOffset(); in readFrame()
896 int8_t findSrcMatchShortEntry(uint16_t aShortAddress) in findSrcMatchShortEntry()
898 int8_t entry = -1; in findSrcMatchShortEntry()
[all …]
/openthread-2.7.6/include/openthread/
Dlink.h65 int8_t mRss; ///< Received Signal Strength in dBm.
105 int8_t mRssIn; ///< Received signal strength
388 int8_t mRssi; ///< RSSI (dBm)
402 int8_t mMaxRssi; ///< The max RSSI (dBm)
800 otError otLinkFilterAddRssIn(otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss);
827 void otLinkFilterSetDefaultRssIn(otInstance *aInstance, int8_t aRss);
876 uint8_t otLinkConvertRssToLinkQuality(otInstance *aInstance, int8_t aRss);
887 int8_t otLinkConvertLinkQualityToRss(otInstance *aInstance, uint8_t aLinkQuality);
Dthread.h98 int8_t mAverageRssi; ///< Average RSSI
99 int8_t mLastRssi; ///< Last observed RSSI
192 int8_t mRssi; ///< Rssi of the Parent
193 int8_t mPriority; ///< Parent priority
792 otError otThreadGetParentAverageRssi(otInstance *aInstance, int8_t *aParentRssi);
805 otError otThreadGetParentLastRssi(otInstance *aInstance, int8_t *aLastRssi);
Djam_detection.h75 otError otJamDetectionSetRssiThreshold(otInstance *aInstance, int8_t aRssiThreshold);
84 int8_t otJamDetectionGetRssiThreshold(otInstance *aInstance);
Dthread_ftd.h66 int8_t mAverageRssi; ///< Average RSSI
67 int8_t mLastRssi; ///< Last observed RSSI
595 int8_t otThreadGetParentPriority(otInstance *aInstance);
612 otError otThreadSetParentPriority(otInstance *aInstance, int8_t aParentPriority);
/openthread-2.7.6/src/posix/platform/
Dradio.cpp111 SuccessOrDie(sRadioSpinel.SetFemLnaGain(static_cast<int8_t>(femLnaGain))); in Init()
120 SuccessOrDie(sRadioSpinel.SetCcaEnergyDetectThreshold(static_cast<int8_t>(ccaThreshold))); in Init()
137 constexpr int8_t kPowerDefault = 30; // Default power 1 watt (30 dBm). in Init()
140 int8_t power = kPowerDefault; in Init()
146 power = static_cast<int8_t>(strtol(str, nullptr, 0)); in Init()
263 int8_t otPlatRadioGetRssi(otInstance *aInstance) in otPlatRadioGetRssi()
405 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower) in otPlatRadioGetTransmitPower()
412 otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower) in otPlatRadioSetTransmitPower()
418 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold) in otPlatRadioGetCcaEnergyDetectThreshold()
425 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold) in otPlatRadioSetCcaEnergyDetectThreshold()
[all …]
/openthread-2.7.6/src/core/common/
Dnumeric_limits.hpp53 template <> struct NumericLimits<int8_t>
55 static constexpr int8_t kMin = INT8_MIN;
56 static constexpr int8_t kMax = INT8_MAX;
/openthread-2.7.6/examples/platforms/utils/
Dlink_metrics.cpp42 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 LinkQualityInfo::ConvertRssToLinkMargin(sNoiseF… in GetLinkMargin()
180 void otLinkMetricsInit(int8_t aNoiseFloor) in otLinkMetricsInit()
239 uint8_t otLinkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uin… in otLinkMetricsEnhAckGenData()
Dlink_metrics.h57 void otLinkMetricsInit(int8_t aNoiseFloor);
98 uint8_t otLinkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uin…
/openthread-2.7.6/src/core/diags/
Dfactory_diags.hpp139 int8_t mFirstRssi;
141 int8_t mLastRssi;
169 int8_t mTxPower;
/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/include/everest/kremlin/internal/
Ddebug.h29 int8_t : "0x%08" PRIx8, \
40 int8_t : X, \
/openthread-2.7.6/tests/fuzz/
Dfuzzer_platform.cpp324 otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower) in otPlatRadioGetTransmitPower()
337 int8_t otPlatRadioGetRssi(otInstance *aInstance) in otPlatRadioGetRssi()
407 otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower) in otPlatRadioSetTransmitPower()
414 otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold) in otPlatRadioGetCcaEnergyDetectThreshold()
421 otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold) in otPlatRadioSetCcaEnergyDetectThreshold()
428 int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance) in otPlatRadioGetReceiveSensitivity()
525 void otPlatDiagTxPowerSet(int8_t aTxPower) in otPlatDiagTxPowerSet()

1234