libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Ethernet PHY STM32Fxx7 Drivers More...
Functions | |
enum phy_status | phy_link_status (uint8_t phy) |
Get the current link status. More... | |
void | phy_autoneg_force (uint8_t phy, enum phy_status mode) |
Force autonegotiation. More... | |
void | phy_autoneg_enable (uint8_t phy) |
Enable the autonegotiation. More... | |
Ethernet PHY STM32Fxx7 Drivers
LGPL License Terms libopencm3 License
void phy_autoneg_enable | ( | uint8_t | phy | ) |
Enable the autonegotiation.
Enable the autonegotiation of the link speed and duplex mode
[in] | phy | uint8_t phy ID of the PHY |
Definition at line 86 of file phy_ksz80x1.c.
References eth_smi_bit_set(), PHY_REG_BCR, PHY_REG_BCR_AN, and PHY_REG_BCR_ANRST.
void phy_autoneg_force | ( | uint8_t | phy, |
enum phy_status | mode | ||
) |
Force autonegotiation.
Force the autonegotiation and set link speed and duplex mode of the link
[in] | phy | uint8_t phy ID of the PHY |
[in] | mode | enum phy_status Desired link status |
Definition at line 62 of file phy_ksz80x1.c.
References eth_smi_bit_op(), LINK_FD_10000M, LINK_FD_1000M, LINK_FD_100M, LINK_FD_10M, LINK_HD_100M, PHY_REG_BCR, PHY_REG_BCR_100M, PHY_REG_BCR_AN, and PHY_REG_BCR_FD.
enum phy_status phy_link_status | ( | uint8_t | phy | ) |
Get the current link status.
Retrieve the link speed and duplex status of the link.
[in] | phy | uint8_t phy ID of the PHY |
Definition at line 49 of file phy_ksz80x1.c.
References eth_smi_read(), and KSZ80X1_CR1.