| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
MDIO Interface. More...
Functions | |
| void | mdio_bus_enable (const struct device *dev) | 
| Enable MDIO bus.  More... | |
| void | mdio_bus_disable (const struct device *dev) | 
| Disable MDIO bus and tri-state drivers.  More... | |
| int | mdio_read (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t *data) | 
| Read from MDIO Bus.  More... | |
| int | mdio_write (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t data) | 
| Write to MDIO bus.  More... | |
MDIO Interface.
| void mdio_bus_disable | ( | const struct device * | dev | ) | 
#include <include/zephyr/drivers/mdio.h>
Disable MDIO bus and tri-state drivers.
| [in] | dev | Pointer to the device structure for the controller | 
| void mdio_bus_enable | ( | const struct device * | dev | ) | 
#include <include/zephyr/drivers/mdio.h>
Enable MDIO bus.
| [in] | dev | Pointer to the device structure for the controller | 
#include <include/zephyr/drivers/mdio.h>
Read from MDIO Bus.
This routine provides a generic interface to perform a read on the MDIO bus.
| [in] | dev | Pointer to the device structure for the controller | 
| [in] | prtad | Port address | 
| [in] | devad | Device address | 
| data | Pointer to receive read data | 
| 0 | If successful. | 
| -EIO | General input / output error. | 
| -ETIMEDOUT | If transaction timedout on the bus | 
#include <include/zephyr/drivers/mdio.h>
Write to MDIO bus.
This routine provides a generic interface to perform a write on the MDIO bus.
| [in] | dev | Pointer to the device structure for the controller | 
| [in] | prtad | Port address | 
| [in] | devad | Device address | 
| [in] | data | Data to write | 
| 0 | If successful. | 
| -EIO | General input / output error. | 
| -ETIMEDOUT | If transaction timedout on the bus |