|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
50 #include <drivers/hw_include/cslr_mdio.h>
68 #define MDIO_LINKSEL_MDIO_MODE (0)
70 #define MDIO_LINKSEL_MLINK_MODE (1)
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 ad...
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 exe...
int32_t MDIO_enableLinkInterrupt(uint32_t mdioBaseAddress, uint32_t regInst, uint32_t phyAddr, uint8_t linkSel)
Function to enable the MDIO Link change interrupt.
int32_t MDIO_initClock(uint32_t baseAddr)
This function initializes the MDIO clock.
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 executi...
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 ex...
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 execut...