AM64x MCU+ SDK  08.02.00
drivers/mdio/v0/mdio.h File Reference

Go to the source code of this file.

Macros

MDIO Link Status Determination Select

#define MDIO_LINKSEL_MDIO_MODE   (0)
 
#define MDIO_LINKSEL_MLINK_MODE   (1)
 

Functions

int32_t MDIO_initClock (uint32_t baseAddr)
 This function initializes the MDIO clock. More...
 
int32_t MDIO_phyRegRead (uint32_t baseAddr, void *pUserGroup, uint32_t phyAddr, uint32_t regNum, uint16_t *pData)
 This API reads an IEEE defined PHY register using MDIO. It should be called only after successful execution of MDIO_initClock(). More...
 
int32_t MDIO_phyRegWrite (uint32_t baseAddr, void *pUserGroup, uint32_t phyAddr, uint32_t regNum, uint16_t wrVal)
 This API writes an IEEE defined PHY register using MDIO. It should be called only after successful execution of MDIO_initClock(). More...
 
int32_t MDIO_phyExtRegRead (uint32_t baseAddr, void *pUserGroup, uint32_t phyAddr, uint32_t regNum, uint16_t *pData)
 This API reads an extended PHY register using MDIO. It should be called only after successful execution of MDIO_initClock(). More...
 
int32_t MDIO_phyExtRegWrite (uint32_t baseAddr, void *pUserGroup, uint32_t phyAddr, uint32_t regNum, uint16_t wrVal)
 This API writes an extended PHY register using MDIO. It should be called only after successful execution of MDIO_initClock(). More...
 
int32_t MDIO_phyLinkStatus (uint32_t baseAddr, uint32_t phyAddr)
 This API reads the link status of all PHY connected to this MDIO. The bit corresponding to the PHY address will be set if the PHY link is active. More...
 
int32_t MDIO_enableLinkInterrupt (uint32_t mdioBaseAddress, uint32_t regInst, uint32_t phyAddr, uint8_t linkSel)
 Function to enable the MDIO Link change interrupt. More...