forked from gatsby/df_datalink
new hardware status refresh api
This commit is contained in:
@@ -1110,11 +1110,10 @@ void Phy_RetrieveRecvData(PHY_INST *instPtr, uint8_t *dataBuff)
|
|||||||
* @param instPtr a pointer to hopping pattern buffer
|
* @param instPtr a pointer to hopping pattern buffer
|
||||||
* @param patternLen a integer indicate the length of hopping pattern.
|
* @param patternLen a integer indicate the length of hopping pattern.
|
||||||
*
|
*
|
||||||
* @return SUCCESS
|
* @return pointer to new hardware status
|
||||||
* FAILURE pattern length exceeds maximum length.
|
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
void Phy_UpdateHwSate(PHY_INST *instPtr)
|
const HWSTATE* Phy_RefreshHwSate(PHY_INST *instPtr)
|
||||||
{
|
{
|
||||||
ASSERT(instPtr != NULL);
|
ASSERT(instPtr != NULL);
|
||||||
uint32_t rawData;
|
uint32_t rawData;
|
||||||
@@ -1214,4 +1213,5 @@ void Phy_UpdateHwSate(PHY_INST *instPtr)
|
|||||||
{
|
{
|
||||||
instPtr->hwSate.isSpOk = true;
|
instPtr->hwSate.isSpOk = true;
|
||||||
}
|
}
|
||||||
|
return (&(instPtr->hwSate));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ int32_t Phy_InstInit(PHY_INST **instPtr, PHY_CONFIG *phyConfig);
|
|||||||
void Phy_Destroy(PHY_INST *instPtr);
|
void Phy_Destroy(PHY_INST *instPtr);
|
||||||
|
|
||||||
void Phy_UpdateState(PHY_INST *instPtr);
|
void Phy_UpdateState(PHY_INST *instPtr);
|
||||||
void Phy_UpdateHwSate(PHY_INST *instPtr);
|
const HWSTATE* Phy_RefreshHwSate(PHY_INST *instPtr);
|
||||||
|
|
||||||
void Phy_Start(PHY_INST *instPtr);
|
void Phy_Start(PHY_INST *instPtr);
|
||||||
void Phy_Halt(PHY_INST *instPtr);
|
void Phy_Halt(PHY_INST *instPtr);
|
||||||
|
|||||||
Reference in New Issue
Block a user