MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_phy_mmd_start_indirect

Function rt_phy_mmd_start_indirect

components/drivers/phy/phy.c:174–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void rt_phy_mmd_start_indirect(struct rt_phy_device *phydev, int devad, int regnum)
175{
176 /* Write the desired MMD Devad */
177 rt_phy_write(phydev, RT_MDIO_DEVAD_NONE, RT_MII_MMD_CTRL, devad);
178
179 /* Write the desired MMD register address */
180 rt_phy_write(phydev, RT_MDIO_DEVAD_NONE, RT_MII_MMD_DATA, regnum);
181
182 /* Select the Function : DATA with no post increment */
183 rt_phy_write(phydev, RT_MDIO_DEVAD_NONE, RT_MII_MMD_CTRL,
184 (devad | RT_MII_MMD_CTRL_NOINCR));
185}
186
187int rt_phy_read_mmd(struct rt_phy_device *phydev, int devad, int regnum)
188{

Callers 2

rt_phy_read_mmdFunction · 0.85
rt_phy_write_mmdFunction · 0.85

Calls 1

rt_phy_writeFunction · 0.70

Tested by

no test coverage detected