AM261x MCU+ SDK: CPSW Management Data Input/Output (MDIO)

| AM261x MCU+ SDK 26.00.00 |

Data Structures | Functions | Enumerations | Macros
CPSW Management Data Input/Output (MDIO)
APIs for Networking modules » APIs for Enet LLD » Enet Management Data I/O (MDIO)

## Introduction

The MDIO module implements the MDIO-generic IOCTL commands defined in ENET_MOD_MDIO API set.

MDIO clocks:

- CPSW_CPPI_CLK - CPSW main clock.

Interrupts:

- MDIO_PEND - MDIO interrupt. Peripheral driver must call MDIO_IOCTL_HANDLE_INTR command to handle the MDIO interrupt.

Features:

- MDIO_FEATURE_CLAUSE45 - Clause-45 frame feature.

Compile-time configuration:

- ENET_CFG_MDIO_CLAUSE45 - Clause-45 frame support.

## Data Structures
struct | Mdio_Cfg
| MDIO module configuration. More...

## Functions
void | Mdio_initCfg (Mdio_Cfg *mdioCfg)
| Initialize MDIO configuration parameters. More...

## Enumerations
enum | Mdio_OpMode { MDIO_MODE_NORMAL = 0U, MDIO_MODE_STATE_CHANGE_MON, MDIO_MODE_MANUAL }
| MDIO operating mode. More...

## Macros
#define | MDIO_MAX_PHY_CNT (31U)
| Maximum number of PHYs supported on MDIO bus. More...

## Macro Definition Documentation

## ◆ MDIO_MAX_PHY_CNT

#define MDIO_MAX_PHY_CNT (31U)

Maximum number of PHYs supported on MDIO bus.

## Enumeration Type Documentation

## ◆ Mdio_OpMode

enum Mdio_OpMode

MDIO operating mode.

Enumerator
MDIO_MODE_NORMAL | Normal mode
MDIO_MODE_STATE_CHANGE_MON | State change monitor mode
MDIO_MODE_MANUAL | Manual mode (slow GPIO, not used for MDIO PHY operations. Used only during MDIO pins software bit banging)

## Function Documentation

## ◆ Mdio_initCfg()

void Mdio_initCfg | ( | Mdio_Cfg * | mdioCfg | ) |

Initialize MDIO configuration parameters.

Parameters

  mdioCfg | Configuration parameters to be initialized