H7 以太网结构体中没有了PHY地址,ETH驱动如何实现的

2019-07-20 02:16发布

请教一下原子哥,问题如题。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
1条回答
whj467467274672
1楼-- · 2019-07-20 08:04
  * @brief  Writes to a PHY register.
  * @param  heth: pointer to a ETH_HandleTypeDef structure that contains
  *         the configuration information for ETHERNET module
  * @param  PHYAddr: PHY port address, must be a value from 0 to 31   
  * @param  PHYReg: PHY register address, must be a value from 0 to 31
  * @param  RegValue: the value to write
  * @retval HAL status

自问自答了。H7每次对PHY进行读写的时候的形参里有一个PHY地址。

一周热门 更多>