Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
eth_lan865x.h File Reference
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>

Go to the source code of this file.

Functions

int eth_lan865x_mdio_c22_read (const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t *data)
 Read C22 registers using LAN865X MDIO Bus.
 
int eth_lan865x_mdio_c22_write (const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t data)
 Write C22 registers using LAN865X MDIO Bus.
 
int eth_lan865x_mdio_c45_read (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t *data)
 Read C45 registers using LAN865X MDIO Bus.
 
int eth_lan865x_mdio_c45_write (const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t data)
 Write C45 registers using LAN865X MDIO Bus.
 

Function Documentation

◆ eth_lan865x_mdio_c22_read()

int eth_lan865x_mdio_c22_read ( const struct device * dev,
uint8_t prtad,
uint8_t regad,
uint16_t * data )

Read C22 registers using LAN865X MDIO Bus.

This routine provides an interface to perform a C22 register read on the LAN865X MDIO bus.

Parameters
[in]devPointer to the device structure for the controller
[in]prtadPort address
[in]regadRegister address
dataPointer to receive read data
Return values
0If successful.
-EIOGeneral input / output error.
-ETIMEDOUTIf transaction timedout on the bus
-ENOSYSif read is not supported

◆ eth_lan865x_mdio_c22_write()

int eth_lan865x_mdio_c22_write ( const struct device * dev,
uint8_t prtad,
uint8_t regad,
uint16_t data )

Write C22 registers using LAN865X MDIO Bus.

This routine provides an interface to perform a C22 register write on the LAN865X MDIO bus.

Parameters
[in]devPointer to the device structure for the controller
[in]prtadPort address
[in]regadRegister address
[in]dataWrite data
Return values
0If successful.
-EIOGeneral input / output error.
-ETIMEDOUTIf transaction timedout on the bus
-ENOSYSif read is not supported

◆ eth_lan865x_mdio_c45_read()

int eth_lan865x_mdio_c45_read ( const struct device * dev,
uint8_t prtad,
uint8_t devad,
uint16_t regad,
uint16_t * data )

Read C45 registers using LAN865X MDIO Bus.

This routine provides an interface to perform a C45 register read on the LAN865X MDIO bus.

Parameters
[in]devPointer to the device structure for the controller
[in]prtadPort address
[in]devadMMD device address
[in]regadRegister address
dataPointer to receive read data
Return values
0If successful.
-EIOGeneral input / output error.
-ETIMEDOUTIf transaction timedout on the bus
-ENOSYSif read is not supported

◆ eth_lan865x_mdio_c45_write()

int eth_lan865x_mdio_c45_write ( const struct device * dev,
uint8_t prtad,
uint8_t devad,
uint16_t regad,
uint16_t data )

Write C45 registers using LAN865X MDIO Bus.

This routine provides an interface to perform a C45 register write on the LAN865X MDIO bus.

Parameters
[in]devPointer to the device structure for the controller
[in]prtadPort address
[in]devadMMD device address
[in]regadRegister address
[in]dataWrite data
Return values
0If successful.
-EIOGeneral input / output error.
-ETIMEDOUTIf transaction timedout on the bus
-ENOSYSif read is not supported