How to detect STM32H573I-DK link status by HAL_ETH_ReadPHYRegister?
Hi supporter,
I'm developing STM32H573I-DK and trying HAL_ETH_ReadPHYRegister to check link status. But this API seems be changed.
Previous prototype is:
HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t *RegValue)But now is:
HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,uint32_t *pRegValue)I have no idea what PHYAddr is. And PHY_BSR is also not defined in STM32H5. So, I don't know how to fill PHYReg.
Is there any example?
I've referenced to GitHub - STMicroelectronics/STM32CubeH5.
But there are no examples about this API. Thanks for your help.
