Zephyr API 3.6.99
Loading...
Searching...
No Matches
mdio.h File Reference

Public APIs for MDIO drivers. More...

#include <zephyr/types.h>
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/syscalls/mdio.h>

Go to the source code of this file.

Functions

void mdio_bus_enable (const struct device *dev)
 Enable MDIO bus.
 
void mdio_bus_disable (const struct device *dev)
 Disable MDIO bus and tri-state drivers.
 
int mdio_read (const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t *data)
 Read from MDIO Bus.
 
int mdio_write (const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t data)
 Write to MDIO bus.
 
int mdio_read_c45 (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t *data)
 Read from MDIO Bus using Clause 45 access.
 
int mdio_write_c45 (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t data)
 Write to MDIO bus using Clause 45 access.
 

Detailed Description

Public APIs for MDIO drivers.