Source file for MDIO implementation.
More...
#include <errno.h>
#include "no_os_alloc.h"
#include "mdio_spi.h"
Source file for MDIO implementation.
- Author
- Johnson Ralph Perez (Johns.nosp@m.onra.nosp@m.lph.P.nosp@m.erez.nosp@m.@anal.nosp@m.og.c.nosp@m.om)
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ mdio_spi_init()
Initialize the MDIO SPI Interface.
- Parameters
-
| dev | - The MDIO device descriptor |
| ip | - Initialization parameter containing information about the MDIO SPI interface to be initialized. |
- Returns
- 0 in case of success, negative code otherwise
◆ mdio_spi_ops
Initial value:= {
.write = mdio_spi_write,
.read = mdio_spi_read,
.remove = mdio_spi_remove,
}
int mdio_spi_init(struct no_os_mdio_desc **dev, const struct no_os_mdio_init_param *ip)
Initialize the MDIO SPI Interface.
Definition mdio_spi.c:31