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

Function rt_phy_read

components/drivers/phy/phy.c:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98int rt_phy_read(struct rt_phy_device *phydev, int devad, int regnum)
99{
100 struct mii_bus *bus = phydev->bus;
101 if(phydev->is_c45)
102 {
103 if(bus->read_c45)
104 return bus->read_c45(bus, phydev->addr, devad, regnum);
105 }
106
107 if( bus && bus->read )
108 return bus->read(bus, phydev->addr, devad, regnum);
109
110 LOG_D("no read function\n");
111 return -1;
112}
113
114int rt_phy_write(struct rt_phy_device *phydev, int devad, int regnum, rt_uint16_t val)
115{

Callers 9

__genphy_config_advertFunction · 0.70
__genphy_restart_anegFunction · 0.70
rt_genphy_config_anegFunction · 0.70
rt_genphy_update_linkFunction · 0.70
__genphy_auto_negFunction · 0.70
rt_genphy_parse_linkFunction · 0.70
rt_genphy_configFunction · 0.70
rt_phy_read_mmdFunction · 0.70
rt_phy_resetFunction · 0.70

Calls 1

readMethod · 0.45

Tested by

no test coverage detected