bugfix: ambiguous hopNum.

This commit is contained in:
Gatsby Van
2024-01-22 16:12:57 +08:00
parent de3ae1c3bc
commit 29243b9656
+19 -6
View File
@@ -556,12 +556,7 @@ int32_t Phy_SetupNextSlot(PHY_INST *instPtr, PHY_TOR_TYPE txrxMode,
default:
return EPARAM;
}
if (instPtr->isPresetHop == false)
{
hopPattern = hopPattern_Config;
}
else
{
switch (frameType)
{
case L1_2KBPS_20MS_FRAME:
@@ -608,6 +603,9 @@ int32_t Phy_SetupNextSlot(PHY_INST *instPtr, PHY_TOR_TYPE txrxMode,
return EPARAM;
break;
}
if (instPtr->isPresetHop == false)
{
hopPattern = hopPattern_Config;
}
PhyWrite(instPtr, PHY_MODE_CTRL, phyModeCtrl | PHY_MODE_CTRL_CRC_EN);
@@ -767,6 +765,21 @@ double Phy_GetCoarseFreqEst(PHY_INST *instPtr)
return freqEst;
}
/*****************************************************************************/
/**
* @brief Get fine frequency estimation of last valid frame.
*
* @param instPtr a pointer to physical instance
*
* @return frequency estimation
*
******************************************************************************/
double Phy_GetFineFreqEst(PHY_INST *instPtr)
{
// TODO:
return 0.0;
}
/*****************************************************************************/
/**
* @brief Setup a frequency hopping pattern.