libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Ethernet PHY Generic Drivers More...
Functions | |
bool | phy_link_isup (uint8_t phy) |
Is the link up ? More... | |
void | phy_reset (uint8_t phy) |
Reset the PHY. More... | |
Ethernet PHY Generic Drivers
LGPL License Terms libopencm3 License
bool phy_link_isup | ( | uint8_t | phy | ) |
Is the link up ?
[in] | phy | uint8_t phy ID of the PHY |
Definition at line 46 of file phy.c.
References eth_smi_read(), PHY_REG_BSR, and PHY_REG_BSR_UP.
void phy_reset | ( | uint8_t | phy | ) |
Reset the PHY.
Reset the PHY chip and wait for done
[in] | phy | uint8_t phy ID of the PHY |
Definition at line 57 of file phy.c.
References eth_smi_read(), eth_smi_write(), PHY_REG_BCR, and PHY_REG_BCR_RESET.
Referenced by eth_init().