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

Function rt_phy_write

components/drivers/phy/phy.c:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114int rt_phy_write(struct rt_phy_device *phydev, int devad, int regnum, rt_uint16_t val)
115{
116 struct mii_bus *bus = phydev->bus;
117 if(phydev->is_c45)
118 {
119 if(bus->write_c45)
120 return bus->write_c45(bus, phydev->addr, devad, regnum, val);
121 }
122 if( bus && bus->write )
123 return bus->write(bus, phydev->addr, devad, regnum, val);
124
125 LOG_D("no write function\n");
126 return -1;
127}
128
129int rt_phy_startup(struct rt_phy_device *phydev)
130{

Callers 6

__genphy_config_advertFunction · 0.70
__genphy_restart_anegFunction · 0.70
rt_genphy_config_anegFunction · 0.70
rt_phy_write_mmdFunction · 0.70
rt_phy_resetFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected