AM64x MCU+ SDK  08.02.00
enet_phymdio_dflt.h File Reference

Introduction

This file contains the interface to the default implementation of the MDIO driver defined by the Ethernet PHY driver (EnetPhy).

Go to the source code of this file.

Functions

EnetPhy_MdioHandle EnetPhyMdioDflt_getPhyMdio (void)
 Get handle to the default Enet MDIO implementation. More...
 
int32_t EnetPhyMdioDflt_ioctl (EnetPhy_Handle hPhy, uint32_t cmd, Enet_IoctlPrms *prms)
 Run an IOCTL operation on a PHY. More...
 

Function Documentation

◆ EnetPhyMdioDflt_getPhyMdio()

EnetPhy_MdioHandle EnetPhyMdioDflt_getPhyMdio ( void  )

Get handle to the default Enet MDIO implementation.

Gets a handle to the default EnetPhy MDIO driver implementation which is based on the Enet MDIO module.

Returns
Handle to the Enet based MDIO default implementation.

◆ EnetPhyMdioDflt_ioctl()

int32_t EnetPhyMdioDflt_ioctl ( EnetPhy_Handle  hPhy,
uint32_t  cmd,
Enet_IoctlPrms prms 
)

Run an IOCTL operation on a PHY.

Runs an IOCTL operation on a given PHY using the ENETPHY driver APIs. This IOCTL function can be used by Enet Peripheral drivers to handle PHY IOCTL commands if they use an ENETPHY driver.

Parameters
hPhyPHY handle
cmdIOCTL command Id
prmsIOCTL parameters
Returns
Enet_ErrorCodes