|
PebbleOS v4.47.0-1161-g94e3d98da
|
PHY driver operations, called with the device lock held. More...
#include <phy.h>
Data Fields | |
| int(* | init )(const struct pbl_phy *phy) |
| Optional. | |
| int(* | power_on )(const struct pbl_phy *phy) |
| Power the PHY on. | |
| int(* | power_off )(const struct pbl_phy *phy) |
| Power the PHY off. | |
| int(* | vbus_present )(const struct pbl_phy *phy, bool *present) |
| Optional, for a PHY that senses VBUS. | |
PHY driver operations, called with the device lock held.
| int(* pbl_phy_ops::init) (const struct pbl_phy *phy) |
Optional.
Set the PHY up, powered off. Returns 0 or a negative errno.
| int(* pbl_phy_ops::power_off) (const struct pbl_phy *phy) |
Power the PHY off.
Returns 0 or a negative errno.
| int(* pbl_phy_ops::power_on) (const struct pbl_phy *phy) |
Power the PHY on.
Returns 0 or a negative errno.
| int(* pbl_phy_ops::vbus_present) (const struct pbl_phy *phy, bool *present) |
Optional, for a PHY that senses VBUS.
Returns 0 or a negative errno.