|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
@def_driverbackendgroup{Ethernet PHY,ethernet_phy} More...
#include <phy.h>
Data Fields | |
| int(* | get_link )(const struct device *dev, struct phy_link_state *state) |
| @driver_ops_optional Get PHY link state. | |
| int(* | cfg_link )(const struct device *dev, enum phy_link_speed adv_speeds, enum phy_cfg_link_flag flags) |
| @driver_ops_optional Configure PHY link. | |
| int(* | link_cb_set )(const struct device *dev, phy_callback_t cb, void *user_data) |
| @driver_ops_optional Set link state change callback. | |
| int(* | read )(const struct device *dev, uint16_t reg_addr, uint32_t *data) |
| @driver_ops_optional Read PHY registers. | |
| int(* | write )(const struct device *dev, uint16_t reg_addr, uint32_t data) |
| @driver_ops_optional Write PHY register. | |
| int(* | read_c45 )(const struct device *dev, uint8_t devad, uint16_t regad, uint16_t *data) |
| @driver_ops_optional Read PHY C45 register. | |
| int(* | write_c45 )(const struct device *dev, uint8_t devad, uint16_t regad, uint16_t data) |
| @driver_ops_optional Write PHY C45 register. | |
| int(* | set_plca_cfg )(const struct device *dev, struct phy_plca_cfg *plca_cfg) |
| @driver_ops_optional Write PHY PLCA configuration. | |
| int(* | get_plca_cfg )(const struct device *dev, struct phy_plca_cfg *plca_cfg) |
| @driver_ops_optional Read PHY PLCA configuration. | |
| int(* | get_plca_sts )(const struct device *dev, bool *plca_sts) |
| @driver_ops_optional Read PHY PLCA status. | |
@def_driverbackendgroup{Ethernet PHY,ethernet_phy}
@driver_ops{Ethernet PHY}
| int(* ethphy_driver_api::cfg_link) (const struct device *dev, enum phy_link_speed adv_speeds, enum phy_cfg_link_flag flags) |
@driver_ops_optional Configure PHY link.
| int(* ethphy_driver_api::get_link) (const struct device *dev, struct phy_link_state *state) |
@driver_ops_optional Get PHY link state.
| int(* ethphy_driver_api::get_plca_cfg) (const struct device *dev, struct phy_plca_cfg *plca_cfg) |
@driver_ops_optional Read PHY PLCA configuration.
CONFIG_ETH_PHY_API_PLCA.
@driver_ops_optional Read PHY PLCA status.
CONFIG_ETH_PHY_API_PLCA.
| int(* ethphy_driver_api::link_cb_set) (const struct device *dev, phy_callback_t cb, void *user_data) |
@driver_ops_optional Set link state change callback.
@driver_ops_optional Read PHY registers.
| int(* ethphy_driver_api::read_c45) (const struct device *dev, uint8_t devad, uint16_t regad, uint16_t *data) |
@driver_ops_optional Read PHY C45 register.
| int(* ethphy_driver_api::set_plca_cfg) (const struct device *dev, struct phy_plca_cfg *plca_cfg) |
@driver_ops_optional Write PHY PLCA configuration.
CONFIG_ETH_PHY_API_PLCA.
@driver_ops_optional Write PHY register.
| int(* ethphy_driver_api::write_c45) (const struct device *dev, uint8_t devad, uint16_t regad, uint16_t data) |
@driver_ops_optional Write PHY C45 register.