mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 22:27:47 +00:00
[csl] fix typos in use of "uncertainty" term in constant/method names (#6855)
This commit is contained in:
@@ -733,22 +733,22 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns CSL parent uncertanity, in ±10 us units.
|
||||
* This method returns CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
* @retval CSL parent uncertanity, in ±10 us units.
|
||||
* @retval CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
*/
|
||||
uint8_t GetCslParentUncertanity(void) const { return mLinks.GetSubMac().GetCslParentUncertanity(); }
|
||||
uint8_t GetCslParentUncertainty(void) const { return mLinks.GetSubMac().GetCslParentUncertainty(); }
|
||||
|
||||
/**
|
||||
* This method returns CSL parent uncertanity, in ±10 us units.
|
||||
* This method returns CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
* @param[in] aCslParentUncert CSL parent uncertanity, in ±10 us units.
|
||||
* @param[in] aCslParentUncert CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
*/
|
||||
void SetCslParentUncertanity(uint8_t aCslParentUncert)
|
||||
void SetCslParentUncertainty(uint8_t aCslParentUncert)
|
||||
{
|
||||
mLinks.GetSubMac().SetCslParentUncertanity(aCslParentUncert);
|
||||
mLinks.GetSubMac().SetCslParentUncertainty(aCslParentUncert);
|
||||
}
|
||||
|
||||
#endif // OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
|
||||
@@ -459,20 +459,20 @@ public:
|
||||
void SetCslParentClockAccuracy(uint8_t aCslParentAccuracy) { mCslParentAccuracy = aCslParentAccuracy; }
|
||||
|
||||
/**
|
||||
* This method sets CSL parent uncertanity, in ±10 us units.
|
||||
* This method sets CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
* @retval CSL parent uncertanity, in ±10 us units.
|
||||
* @retval CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
*/
|
||||
uint8_t GetCslParentUncertanity(void) const { return mCslParentUncert; }
|
||||
uint8_t GetCslParentUncertainty(void) const { return mCslParentUncert; }
|
||||
|
||||
/**
|
||||
* This method returns CSL parent uncertanity, in ±10 us units.
|
||||
* This method returns CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
* @param[in] aCslParentUncert CSL parent uncertanity, in ±10 us units.
|
||||
* @param[in] aCslParentUncert CSL parent uncertainty, in ±10 us units.
|
||||
*
|
||||
*/
|
||||
void SetCslParentUncertanity(uint8_t aCslParentUncert) { mCslParentUncert = aCslParentUncert; }
|
||||
void SetCslParentUncertainty(uint8_t aCslParentUncert) { mCslParentUncert = aCslParentUncert; }
|
||||
|
||||
#endif // OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
|
||||
|
||||
@@ -3302,7 +3302,7 @@ bool Mle::IsBetterParent(uint16_t aRloc16,
|
||||
{
|
||||
cslMetric = CalcParentCslMetric(aCslClockAccuracy, aCslUncertainty);
|
||||
candidateCslMetric =
|
||||
CalcParentCslMetric(mParentCandidate.GetCslClockAccuracy(), mParentCandidate.GetCslClockUncertianity());
|
||||
CalcParentCslMetric(mParentCandidate.GetCslClockAccuracy(), mParentCandidate.GetCslClockUncertainty());
|
||||
if (candidateCslMetric != cslMetric)
|
||||
{
|
||||
ExitNow(rval = (cslMetric < candidateCslMetric));
|
||||
@@ -3508,7 +3508,7 @@ void Mle::HandleParentResponse(const Message &aMessage, const Ip6::MessageInfo &
|
||||
mParentCandidate.SetKeySequence(aKeySequence);
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
mParentCandidate.SetCslClockAccuracy(clockAccuracy.GetCslClockAccuracy());
|
||||
mParentCandidate.SetCslClockUncertianity(clockAccuracy.GetCslUncertainty());
|
||||
mParentCandidate.SetCslClockUncertainty(clockAccuracy.GetCslUncertainty());
|
||||
#endif
|
||||
|
||||
mParentPriority = connectivity.GetParentPriority();
|
||||
@@ -3639,7 +3639,7 @@ void Mle::HandleChildIdResponse(const Message & aMessage,
|
||||
mParentCandidate.Clear();
|
||||
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
Get<Mac::Mac>().SetCslParentUncertanity(mParent.GetCslClockUncertianity());
|
||||
Get<Mac::Mac>().SetCslParentUncertainty(mParent.GetCslClockUncertainty());
|
||||
Get<Mac::Mac>().SetCslParentClockAccuracy(mParent.GetCslClockAccuracy());
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1347,7 +1347,7 @@ public:
|
||||
Neighbor::Init(aInstance);
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
SetCslClockAccuracy(kCslWorstCrystalPpm);
|
||||
SetCslClockUncertianity(kCslWorstUncertainty);
|
||||
SetCslClockUncertainty(kCslWorstUncertainty);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1423,20 +1423,20 @@ public:
|
||||
void SetCslClockAccuracy(uint8_t aCslClockAccuracy) { mCslClockAccuracy = aCslClockAccuracy; }
|
||||
|
||||
/**
|
||||
* This method get the CSL clock uncertianity of this router.
|
||||
* This method get the CSL clock uncertainty of this router.
|
||||
*
|
||||
* @returns The CSL clock uncertianity of this router.
|
||||
* @returns The CSL clock uncertainty of this router.
|
||||
*
|
||||
*/
|
||||
uint8_t GetCslClockUncertianity(void) const { return mCslClockUncertianity; }
|
||||
uint8_t GetCslClockUncertainty(void) const { return mCslClockUncertainty; }
|
||||
|
||||
/**
|
||||
* This method sets the CSL clock uncertianity of this router.
|
||||
* This method sets the CSL clock uncertainty of this router.
|
||||
*
|
||||
* @param[in] aCost The CSL clock uncertianity of this router.
|
||||
* @param[in] aCost The CSL clock uncertainty of this router.
|
||||
*
|
||||
*/
|
||||
void SetCslClockUncertianity(uint8_t aCslClockUncertianity) { mCslClockUncertianity = aCslClockUncertianity; }
|
||||
void SetCslClockUncertainty(uint8_t aCslClockUncertainty) { mCslClockUncertainty = aCslClockUncertainty; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
@@ -1449,8 +1449,8 @@ private:
|
||||
uint8_t mCost : 4; ///< The cost to this router via neighbor router
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
uint8_t mCslClockAccuracy; ///< Crystal accuracy, in units of ± ppm.
|
||||
uint8_t mCslClockUncertianity; ///< Scheduling uncertainty, in units of 10 us.
|
||||
uint8_t mCslClockAccuracy; ///< Crystal accuracy, in units of ± ppm.
|
||||
uint8_t mCslClockUncertainty; ///< Scheduling uncertainty, in units of 10 us.
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user