#include <stdint.h>
#include <zephyr/device.h>
Go to the source code of this file.
◆ adin2111_mdio_c45_read()
Read from MDIO Bus using Clause 45 access.
- Note
- The caller is responsible for device lock. Shall not be called from ISR.
- Parameters
-
| [in] | dev | MDIO device. |
| [in] | prtad | Port address. |
| [in] | devad | Device address. |
| [in] | regad | Register address. |
| [out] | data | Pointer to receive read data. |
- Return values
-
| 0 | If successful. |
| -EIO | General input / output error. |
| -ETIMEDOUT | If transaction timedout on the bus. |
| <0 | Error, a negative errno code. |
◆ adin2111_mdio_c45_write()
Write to MDIO bus using Clause 45 access.
- Note
- The caller is responsible for device lock. Shall not be called from ISR.
- Parameters
-
| [in] | dev | MDIO device. |
| [in] | prtad | Port address. |
| [in] | devad | Device address. |
| [in] | regad | Register address. |
| [in] | data | Data to write. |
- Return values
-
| 0 | If successful. |
| -EIO | General input / output error. |
| -ETIMEDOUT | If transaction timedout on the bus. |
| <0 | Error, a negative errno code. |