PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
pbl_phy_ops Struct Reference

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.
 

Detailed Description

PHY driver operations, called with the device lock held.

Field Documentation

◆ init

int(* pbl_phy_ops::init) (const struct pbl_phy *phy)

Optional.

Set the PHY up, powered off. Returns 0 or a negative errno.

◆ power_off

int(* pbl_phy_ops::power_off) (const struct pbl_phy *phy)

Power the PHY off.

Returns 0 or a negative errno.

◆ power_on

int(* pbl_phy_ops::power_on) (const struct pbl_phy *phy)

Power the PHY on.

Returns 0 or a negative errno.

◆ vbus_present

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.


The documentation for this struct was generated from the following file: