CTL_STATUS_t ctl_net_read_phy_register(CTL_NET_INTERFACE_t *self,
                                       int reg);

ctl_net_read_phy_register reads PHY register reg from the PHY associated with the network interface self.

You can call this from any task to read the PHY register as access to the MAC and PHY is protected by a mutex.

Return Value

ctl_net_read_phy_register returns a standard status code.