PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
pbl_mdio_ops Struct Reference

MDIO driver operations, called with the bus lock held. More...

#include <mdio.h>

Data Fields

int(* init )(const struct pbl_mdio *mdio)
 Optional.
 
int(* read )(const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t *val)
 Read register reg of the PHY at addr.
 
int(* write )(const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t val)
 Write register reg of the PHY at addr.
 

Detailed Description

MDIO driver operations, called with the bus lock held.

Field Documentation

◆ init

int(* pbl_mdio_ops::init) (const struct pbl_mdio *mdio)

Optional.

Set the controller up. Returns 0 or a negative errno.

◆ read

int(* pbl_mdio_ops::read) (const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t *val)

Read register reg of the PHY at addr.

Returns 0 or a negative errno.

◆ write

int(* pbl_mdio_ops::write) (const struct pbl_mdio *mdio, uint8_t addr, uint8_t reg, uint16_t val)

Write register reg of the PHY at addr.

Returns 0 or a negative errno.


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