AM62D FreeRTOS SDK  11.02.00

Introduction

TI PHY COMMON for Ethernet PHY.

Data Structures

struct  Phy_Version
 
struct  Phy_RegAccessCb_t
 
struct  Phy_DrvObj_t
 
struct  Phy_Obj_t
 

Functions

int32_t GenericPhy_readReg (EthPhyDrv_Handle hPhy, uint32_t reg, uint16_t *val)
 
int32_t GenericPhy_writeReg (EthPhyDrv_Handle hPhy, uint32_t reg, uint16_t val)
 
int32_t GenericPhy_readExtReg (EthPhyDrv_Handle hPhy, uint32_t reg, uint16_t *val)
 
int32_t GenericPhy_writeExtReg (EthPhyDrv_Handle hPhy, uint32_t reg, uint16_t val)
 
void GenericPhy_reset (EthPhyDrv_Handle hPhy)
 
bool GenericPhy_isResetComplete (EthPhyDrv_Handle hPhy)
 
int32_t GenericPhy_ctrlPowerDown (EthPhyDrv_Handle hPhy, bool control)
 
int32_t GenericPhy_isPowerDownActive (EthPhyDrv_Handle hPhy, bool *active)
 
int32_t GenericPhy_enableAdvertisement (EthPhyDrv_Handle hPhy, uint32_t advertisement)
 
int32_t GenericPhy_disableAdvertisement (EthPhyDrv_Handle hPhy, uint32_t advertisement)
 
int32_t GenericPhy_ctrlAutoNegotiation (EthPhyDrv_Handle hPhy, uint32_t control)
 
int32_t GenericPhy_isLinkPartnerAutoNegotiationAble (EthPhyDrv_Handle hPhy, bool *pAble)
 
int32_t GenericPhy_isAutoNegotiationEnabled (EthPhyDrv_Handle hPhy, bool *enabled)
 
int32_t GenericPhy_isAutoNegotiationComplete (EthPhyDrv_Handle hPhy, bool *completed)
 
int32_t GenericPhy_isAutoNegotiationRestartComplete (EthPhyDrv_Handle hPhy, bool *completed)
 
int32_t GenericPhy_setSpeedDuplex (EthPhyDrv_Handle hPhy, uint32_t settings)
 
int32_t GenericPhy_isLinkUp (EthPhyDrv_Handle hPhy, bool *linkUp)
 
int32_t GenericPhy_getId (EthPhyDrv_Handle hPhy, uint32_t *id)
 

Typedefs

typedef uint8_t EthPhyDrv_Handle[ETHPHYDRV_MAX_OBJ_SIZE]
 
typedef Phy_DrvObj_tEthPhyDrv_If
 

Enumerations

enum  Phy_Mii {
  PHY_MAC_MII_MII = 0U, PHY_MAC_MII_RMII, PHY_MAC_MII_GMII, PHY_MAC_MII_RGMII,
  PHY_MAC_MII_SGMII, PHY_MAC_MII_QSGMII
}
 
enum  Phy_Link_SpeedDuplex {
  PHY_LINK_AUTONEG = 0U, PHY_LINK_FD10, PHY_LINK_FD100, PHY_LINK_FD1000,
  PHY_LINK_HD10, PHY_LINK_HD100, PHY_LINK_HD1000, PHY_LINK_INVALID
}
 
enum  Phy_AutoNegCtrl { PHY_AUTO_NEGOTIATION_CTRL_DISABLE = 0U, PHY_AUTO_NEGOTIATION_CTRL_ENABLE, PHY_AUTO_NEGOTIATION_CTRL_RESTART, PHY_AUTO_NEGOTIATION_CTRL_ENABLE_AND_RESTART }
 

Macros

#define ETHPHYDRV_MAX_OBJ_SIZE   (64) /* to meet the size of Phy_Obj_t */
 
#define PHY_DIV_ROUNDUP(val, div)   (((val) + (div) - 1) / (div))
 Macro to perform round-up division. More...
 
#define PHY_BIT(n)   (1U << (n))
 Macro to set bit at given bit position. More...
 
#define PHY_ON   (1U)
 Build-time config option is enabled. More...
 
#define PHY_OFF   (0U)
 Build-time config option is disabled. More...
 
#define PHY_CFG_IS_ON(name)   ((PHY_CFG_ ## name) == PHY_ON)
 Preprocessor check if config option is enabled. More...
 
#define PHY_CFG_IS_OFF(name)   ((PHY_CFG_ ## name) == PHY_OFF)
 Preprocessor check if config option is disabled. More...
 
#define PHY_BMCR   (0x00U)
 Basic Mode Control Register (BMCR) More...
 
#define PHY_BMSR   (0x01U)
 Basic Mode Status Register (BMSR) More...
 
#define PHY_PHYIDR1   (0x02U)
 PHY Identifier Register #1 (PHYIDR1) More...
 
#define PHY_PHYIDR2   (0x03U)
 PHY Identifier Register #2 (PHYIDR2) More...
 
#define PHY_ANAR   (0x04U)
 Auto-Negotiation Advertisement Register (ANAR) More...
 
#define PHY_ANLPAR   (0x05U)
 Auto-Negotiation Link Partner Abilitiy Register (ANLPAR) More...
 
#define PHY_ANER   (0x06U)
 Auto-Negotiation Expansion Register (ANER) More...
 
#define PHY_ANNPTR   (0x07U)
 Auto-Negotiation NP TX Register (ANNPTR) More...
 
#define PHY_ANNPRR   (0x08U)
 Auto-Neg NP RX Register (ANNPRR) More...
 
#define PHY_GIGCR   (0x09U)
 1000BASE-T Control Register (GIGCR) More...
 
#define PHY_GIGSR   (0x0AU)
 1000BASE-T Status Register (GIGSR) More...
 
#define PHY_MMD_CR   (0x0DU)
 MMD Access Control Register. More...
 
#define PHY_MMD_DR   (0x0EU)
 MMD Access Data Register. More...
 
#define PHY_GIGESR   (0x0FU)
 1000BASE-T Extended Status Register (GIGESR) More...
 
#define MMD_CR_ADDR   (0x0000U)
 
#define MMD_CR_DATA_NOPOSTINC   (0x4000U)
 
#define MMD_CR_DATA_POSTINC_RW   (0x8000U)
 
#define MMD_CR_DATA_POSTINC_W   (0xC000U)
 
#define MMD_CR_DEVADDR   (0x001FU)
 
#define PHY_BMCR_RESET   PHY_BIT(15)
 
#define PHY_BMCR_LOOPBACK   PHY_BIT(14)
 
#define PHY_BMCR_SPEED100   PHY_BIT(13)
 
#define PHY_BMCR_ANEN   PHY_BIT(12)
 
#define PHY_BMCR_PWRDOWN   PHY_BIT(11)
 
#define PHY_BMCR_ISOLATE   PHY_BIT(10)
 
#define PHY_BMCR_ANRESTART   PHY_BIT(9)
 
#define PHY_BMCR_FD   PHY_BIT(8)
 
#define PHY_BMCR_SPEED1000   PHY_BIT(6)
 
#define PHY_EXTENDED_CFG_SIZE_MAX   (128U)
 Max extended configuration size, arbitrarily chosen. More...
 
#define PHY_LINK_CAP_HD10   PHY_BIT(1)
 10-Mbps, half-duplex capability mask. More...
 
#define PHY_LINK_CAP_FD10   PHY_BIT(2)
 10-Mbps, full-duplex capability mask. More...
 
#define PHY_LINK_CAP_HD100   PHY_BIT(3)
 100-Mbps, half-duplex capability mask. More...
 
#define PHY_LINK_CAP_FD100   PHY_BIT(4)
 100-Mbps, full-duplex capability mask. More...
 
#define PHY_LINK_CAP_HD1000   PHY_BIT(5)
 1-Gbps, half-duplex capability mask. More...
 
#define PHY_LINK_CAP_FD1000   PHY_BIT(6)
 1-Gbps, full-duplex capability mask. More...
 
#define PHY_LINK_CAP_10   (PHY_LINK_CAP_HD10 | PHY_LINK_CAP_FD10)
 10-Mbps, full and half-duplex capability mask. More...
 
#define PHY_LINK_CAP_100   (PHY_LINK_CAP_HD100 | PHY_LINK_CAP_FD100)
 100-Mbps, full and half-duplex capability mask. More...
 
#define PHY_LINK_CAP_1000   (PHY_LINK_CAP_HD1000 | PHY_LINK_CAP_FD1000)
 1-Gbps, full and half-duplex capability mask. More...
 
#define PHY_LINK_CAP_ALL
 Auto-negotiation mask with all duplexity and speed values set. More...
 
#define PHY_LINK_ADV_HD10   PHY_BIT(1)
 10-Mbps, half-duplex advertisement flag. More...
 
#define PHY_LINK_ADV_FD10   PHY_BIT(2)
 10-Mbps, full-duplex advertisement flag. More...
 
#define PHY_LINK_ADV_HD100   PHY_BIT(3)
 100-Mbps, half-duplex advertisement flag. More...
 
#define PHY_LINK_ADV_FD100   PHY_BIT(4)
 100-Mbps, full-duplex advertisement flag. More...
 
#define PHY_LINK_ADV_HD1000   PHY_BIT(5)
 1-Gbps, half-duplex advertisement flag. More...
 
#define PHY_LINK_ADV_FD1000   PHY_BIT(6)
 1-Gbps, full-duplex advertisement flag. More...
 
#define PHY_FAST_LINK_DOWN_ENERGY_LOST   PHY_BIT(0)
 Fast link down option - energy lost. More...
 
#define PHY_FAST_LINK_DOWN_MSE   PHY_BIT(1)
 Fast link down option - MSE error. More...
 
#define PHY_FAST_LINK_DOWN_MLT3_ERRORS   PHY_BIT(2)
 Fast link down option - MLT3 errors. More...
 
#define PHY_FAST_LINK_DOWN_RX_ERR   PHY_BIT(3)
 Fast link down option - RX error. More...
 
#define PHY_FAST_LINK_DOWN_DESCRAMBLER_SYNC_LOSS   PHY_BIT(4)
 Fast link down option - decrambler sync lost. More...
 

Ethernet PHY driver error codes

Error codes returned by the Ethernet PHY driver APIs.

#define PHY_SOK   ( (int32_t) (0))
 Success. More...
 
#define PHY_EFAIL   (-(int32_t) (1))
 Generic failure error condition (typically caused by hardware). More...
 
#define PHY_EBADARGS   (-(int32_t) (2)) (-(int32_t) (2))
 Bad arguments (i.e. NULL pointer). More...
 
#define PHY_EINVALIDPARAMS   (-(int32_t) (3))
 Invalid parameters (i.e. value out-of-range). More...
 
#define PHY_ETIMEOUT   (-(int32_t) (4))
 Time out while waiting for a given condition to happen. More...
 
#define PHY_EALLOC   (-(int32_t) (8))
 Allocation failure. More...
 
#define PHY_EPERM   (PHY_EALLOC - 4)
 Operation not permitted. More...
 
#define PHY_ENOTSUPPORTED   (PHY_EALLOC - 5)
 Operation not supported. More...
 

Macro Definition Documentation

◆ ETHPHYDRV_MAX_OBJ_SIZE

#define ETHPHYDRV_MAX_OBJ_SIZE   (64) /* to meet the size of Phy_Obj_t */

◆ PHY_DIV_ROUNDUP

#define PHY_DIV_ROUNDUP (   val,
  div 
)    (((val) + (div) - 1) / (div))

Macro to perform round-up division.

◆ PHY_BIT

#define PHY_BIT (   n)    (1U << (n))

Macro to set bit at given bit position.

◆ PHY_ON

#define PHY_ON   (1U)

Build-time config option is enabled.

◆ PHY_OFF

#define PHY_OFF   (0U)

Build-time config option is disabled.

◆ PHY_CFG_IS_ON

#define PHY_CFG_IS_ON (   name)    ((PHY_CFG_ ## name) == PHY_ON)

Preprocessor check if config option is enabled.

◆ PHY_CFG_IS_OFF

#define PHY_CFG_IS_OFF (   name)    ((PHY_CFG_ ## name) == PHY_OFF)

Preprocessor check if config option is disabled.

◆ PHY_SOK

#define PHY_SOK   ( (int32_t) (0))

Success.

◆ PHY_EFAIL

#define PHY_EFAIL   (-(int32_t) (1))

Generic failure error condition (typically caused by hardware).

◆ PHY_EBADARGS

#define PHY_EBADARGS   (-(int32_t) (2)) (-(int32_t) (2))

Bad arguments (i.e. NULL pointer).

◆ PHY_EINVALIDPARAMS

#define PHY_EINVALIDPARAMS   (-(int32_t) (3))

Invalid parameters (i.e. value out-of-range).

◆ PHY_ETIMEOUT

#define PHY_ETIMEOUT   (-(int32_t) (4))

Time out while waiting for a given condition to happen.

◆ PHY_EALLOC

#define PHY_EALLOC   (-(int32_t) (8))

Allocation failure.

◆ PHY_EPERM

#define PHY_EPERM   (PHY_EALLOC - 4)

Operation not permitted.

◆ PHY_ENOTSUPPORTED

#define PHY_ENOTSUPPORTED   (PHY_EALLOC - 5)

Operation not supported.

◆ PHY_BMCR

#define PHY_BMCR   (0x00U)

Basic Mode Control Register (BMCR)

◆ PHY_BMSR

#define PHY_BMSR   (0x01U)

Basic Mode Status Register (BMSR)

◆ PHY_PHYIDR1

#define PHY_PHYIDR1   (0x02U)

PHY Identifier Register #1 (PHYIDR1)

◆ PHY_PHYIDR2

#define PHY_PHYIDR2   (0x03U)

PHY Identifier Register #2 (PHYIDR2)

◆ PHY_ANAR

#define PHY_ANAR   (0x04U)

Auto-Negotiation Advertisement Register (ANAR)

◆ PHY_ANLPAR

#define PHY_ANLPAR   (0x05U)

Auto-Negotiation Link Partner Abilitiy Register (ANLPAR)

◆ PHY_ANER

#define PHY_ANER   (0x06U)

Auto-Negotiation Expansion Register (ANER)

◆ PHY_ANNPTR

#define PHY_ANNPTR   (0x07U)

Auto-Negotiation NP TX Register (ANNPTR)

◆ PHY_ANNPRR

#define PHY_ANNPRR   (0x08U)

Auto-Neg NP RX Register (ANNPRR)

◆ PHY_GIGCR

#define PHY_GIGCR   (0x09U)

1000BASE-T Control Register (GIGCR)

◆ PHY_GIGSR

#define PHY_GIGSR   (0x0AU)

1000BASE-T Status Register (GIGSR)

◆ PHY_MMD_CR

#define PHY_MMD_CR   (0x0DU)

MMD Access Control Register.

◆ PHY_MMD_DR

#define PHY_MMD_DR   (0x0EU)

MMD Access Data Register.

◆ PHY_GIGESR

#define PHY_GIGESR   (0x0FU)

1000BASE-T Extended Status Register (GIGESR)

◆ MMD_CR_ADDR

#define MMD_CR_ADDR   (0x0000U)

◆ MMD_CR_DATA_NOPOSTINC

#define MMD_CR_DATA_NOPOSTINC   (0x4000U)

◆ MMD_CR_DATA_POSTINC_RW

#define MMD_CR_DATA_POSTINC_RW   (0x8000U)

◆ MMD_CR_DATA_POSTINC_W

#define MMD_CR_DATA_POSTINC_W   (0xC000U)

◆ MMD_CR_DEVADDR

#define MMD_CR_DEVADDR   (0x001FU)

◆ PHY_BMCR_RESET

#define PHY_BMCR_RESET   PHY_BIT(15)

◆ PHY_BMCR_LOOPBACK

#define PHY_BMCR_LOOPBACK   PHY_BIT(14)

◆ PHY_BMCR_SPEED100

#define PHY_BMCR_SPEED100   PHY_BIT(13)

◆ PHY_BMCR_ANEN

#define PHY_BMCR_ANEN   PHY_BIT(12)

◆ PHY_BMCR_PWRDOWN

#define PHY_BMCR_PWRDOWN   PHY_BIT(11)

◆ PHY_BMCR_ISOLATE

#define PHY_BMCR_ISOLATE   PHY_BIT(10)

◆ PHY_BMCR_ANRESTART

#define PHY_BMCR_ANRESTART   PHY_BIT(9)

◆ PHY_BMCR_FD

#define PHY_BMCR_FD   PHY_BIT(8)

◆ PHY_BMCR_SPEED1000

#define PHY_BMCR_SPEED1000   PHY_BIT(6)

◆ PHY_EXTENDED_CFG_SIZE_MAX

#define PHY_EXTENDED_CFG_SIZE_MAX   (128U)

Max extended configuration size, arbitrarily chosen.

◆ PHY_LINK_CAP_HD10

#define PHY_LINK_CAP_HD10   PHY_BIT(1)

10-Mbps, half-duplex capability mask.

◆ PHY_LINK_CAP_FD10

#define PHY_LINK_CAP_FD10   PHY_BIT(2)

10-Mbps, full-duplex capability mask.

◆ PHY_LINK_CAP_HD100

#define PHY_LINK_CAP_HD100   PHY_BIT(3)

100-Mbps, half-duplex capability mask.

◆ PHY_LINK_CAP_FD100

#define PHY_LINK_CAP_FD100   PHY_BIT(4)

100-Mbps, full-duplex capability mask.

◆ PHY_LINK_CAP_HD1000

#define PHY_LINK_CAP_HD1000   PHY_BIT(5)

1-Gbps, half-duplex capability mask.

◆ PHY_LINK_CAP_FD1000

#define PHY_LINK_CAP_FD1000   PHY_BIT(6)

1-Gbps, full-duplex capability mask.

◆ PHY_LINK_CAP_10

#define PHY_LINK_CAP_10   (PHY_LINK_CAP_HD10 | PHY_LINK_CAP_FD10)

10-Mbps, full and half-duplex capability mask.

◆ PHY_LINK_CAP_100

#define PHY_LINK_CAP_100   (PHY_LINK_CAP_HD100 | PHY_LINK_CAP_FD100)

100-Mbps, full and half-duplex capability mask.

◆ PHY_LINK_CAP_1000

#define PHY_LINK_CAP_1000   (PHY_LINK_CAP_HD1000 | PHY_LINK_CAP_FD1000)

1-Gbps, full and half-duplex capability mask.

◆ PHY_LINK_CAP_ALL

#define PHY_LINK_CAP_ALL
Value:
PHY_LINK_CAP_HD100 | PHY_LINK_CAP_FD100 | \
PHY_LINK_CAP_HD1000 | PHY_LINK_CAP_FD1000)

Auto-negotiation mask with all duplexity and speed values set.

◆ PHY_LINK_ADV_HD10

#define PHY_LINK_ADV_HD10   PHY_BIT(1)

10-Mbps, half-duplex advertisement flag.

◆ PHY_LINK_ADV_FD10

#define PHY_LINK_ADV_FD10   PHY_BIT(2)

10-Mbps, full-duplex advertisement flag.

◆ PHY_LINK_ADV_HD100

#define PHY_LINK_ADV_HD100   PHY_BIT(3)

100-Mbps, half-duplex advertisement flag.

◆ PHY_LINK_ADV_FD100

#define PHY_LINK_ADV_FD100   PHY_BIT(4)

100-Mbps, full-duplex advertisement flag.

◆ PHY_LINK_ADV_HD1000

#define PHY_LINK_ADV_HD1000   PHY_BIT(5)

1-Gbps, half-duplex advertisement flag.

◆ PHY_LINK_ADV_FD1000

#define PHY_LINK_ADV_FD1000   PHY_BIT(6)

1-Gbps, full-duplex advertisement flag.

◆ PHY_FAST_LINK_DOWN_ENERGY_LOST

#define PHY_FAST_LINK_DOWN_ENERGY_LOST   PHY_BIT(0)

Fast link down option - energy lost.

◆ PHY_FAST_LINK_DOWN_MSE

#define PHY_FAST_LINK_DOWN_MSE   PHY_BIT(1)

Fast link down option - MSE error.

◆ PHY_FAST_LINK_DOWN_MLT3_ERRORS

#define PHY_FAST_LINK_DOWN_MLT3_ERRORS   PHY_BIT(2)

Fast link down option - MLT3 errors.

◆ PHY_FAST_LINK_DOWN_RX_ERR

#define PHY_FAST_LINK_DOWN_RX_ERR   PHY_BIT(3)

Fast link down option - RX error.

◆ PHY_FAST_LINK_DOWN_DESCRAMBLER_SYNC_LOSS

#define PHY_FAST_LINK_DOWN_DESCRAMBLER_SYNC_LOSS   PHY_BIT(4)

Fast link down option - decrambler sync lost.

Typedef Documentation

◆ EthPhyDrv_Handle

typedef uint8_t EthPhyDrv_Handle[ETHPHYDRV_MAX_OBJ_SIZE]

◆ EthPhyDrv_If

Enumeration Type Documentation

◆ Phy_Mii

enum Phy_Mii
Enumerator
PHY_MAC_MII_MII 

MII interface.

PHY_MAC_MII_RMII 

RMII interface.

PHY_MAC_MII_GMII 

GMII interface.

PHY_MAC_MII_RGMII 

RGMII interface.

PHY_MAC_MII_SGMII 

SGMII interface.

PHY_MAC_MII_QSGMII 

QSGMII interface.

◆ Phy_Link_SpeedDuplex

Enumerator
PHY_LINK_AUTONEG 

Auto-Negotiation.

PHY_LINK_FD10 

full-duplex, 10Mbps

PHY_LINK_FD100 

full-duplex, 100Mbps

PHY_LINK_FD1000 

full-duplex, 1000Mbps

PHY_LINK_HD10 

half-duplex, 10Mbps

PHY_LINK_HD100 

half-duplex, 100Mbps

PHY_LINK_HD1000 

half-duplex, 1000Mbps

PHY_LINK_INVALID 

Invalid Speed Duplex.

◆ Phy_AutoNegCtrl

Enumerator
PHY_AUTO_NEGOTIATION_CTRL_DISABLE 

Disable Auto Negotiation.

PHY_AUTO_NEGOTIATION_CTRL_ENABLE 

Enable Auto Negotiation.

PHY_AUTO_NEGOTIATION_CTRL_RESTART 

Restart Auto Negotiation.

PHY_AUTO_NEGOTIATION_CTRL_ENABLE_AND_RESTART 

Enable and Restart Auto Negotiation.

Function Documentation

◆ GenericPhy_readReg()

int32_t GenericPhy_readReg ( EthPhyDrv_Handle  hPhy,
uint32_t  reg,
uint16_t *  val 
)

◆ GenericPhy_writeReg()

int32_t GenericPhy_writeReg ( EthPhyDrv_Handle  hPhy,
uint32_t  reg,
uint16_t  val 
)

◆ GenericPhy_readExtReg()

int32_t GenericPhy_readExtReg ( EthPhyDrv_Handle  hPhy,
uint32_t  reg,
uint16_t *  val 
)

◆ GenericPhy_writeExtReg()

int32_t GenericPhy_writeExtReg ( EthPhyDrv_Handle  hPhy,
uint32_t  reg,
uint16_t  val 
)

◆ GenericPhy_reset()

void GenericPhy_reset ( EthPhyDrv_Handle  hPhy)

◆ GenericPhy_isResetComplete()

bool GenericPhy_isResetComplete ( EthPhyDrv_Handle  hPhy)

◆ GenericPhy_ctrlPowerDown()

int32_t GenericPhy_ctrlPowerDown ( EthPhyDrv_Handle  hPhy,
bool  control 
)

◆ GenericPhy_isPowerDownActive()

int32_t GenericPhy_isPowerDownActive ( EthPhyDrv_Handle  hPhy,
bool *  active 
)

◆ GenericPhy_enableAdvertisement()

int32_t GenericPhy_enableAdvertisement ( EthPhyDrv_Handle  hPhy,
uint32_t  advertisement 
)

◆ GenericPhy_disableAdvertisement()

int32_t GenericPhy_disableAdvertisement ( EthPhyDrv_Handle  hPhy,
uint32_t  advertisement 
)

◆ GenericPhy_ctrlAutoNegotiation()

int32_t GenericPhy_ctrlAutoNegotiation ( EthPhyDrv_Handle  hPhy,
uint32_t  control 
)

◆ GenericPhy_isLinkPartnerAutoNegotiationAble()

int32_t GenericPhy_isLinkPartnerAutoNegotiationAble ( EthPhyDrv_Handle  hPhy,
bool *  pAble 
)

◆ GenericPhy_isAutoNegotiationEnabled()

int32_t GenericPhy_isAutoNegotiationEnabled ( EthPhyDrv_Handle  hPhy,
bool *  enabled 
)

◆ GenericPhy_isAutoNegotiationComplete()

int32_t GenericPhy_isAutoNegotiationComplete ( EthPhyDrv_Handle  hPhy,
bool *  completed 
)

◆ GenericPhy_isAutoNegotiationRestartComplete()

int32_t GenericPhy_isAutoNegotiationRestartComplete ( EthPhyDrv_Handle  hPhy,
bool *  completed 
)

◆ GenericPhy_setSpeedDuplex()

int32_t GenericPhy_setSpeedDuplex ( EthPhyDrv_Handle  hPhy,
uint32_t  settings 
)

◆ GenericPhy_isLinkUp()

int32_t GenericPhy_isLinkUp ( EthPhyDrv_Handle  hPhy,
bool *  linkUp 
)

◆ GenericPhy_getId()

int32_t GenericPhy_getId ( EthPhyDrv_Handle  hPhy,
uint32_t *  id 
)
PHY_LINK_CAP_FD1000
#define PHY_LINK_CAP_FD1000
1-Gbps, full-duplex capability mask.
Definition: phy_common.h:168
PHY_LINK_CAP_FD10
#define PHY_LINK_CAP_FD10
10-Mbps, full-duplex capability mask.
Definition: phy_common.h:160
PHY_LINK_CAP_HD10
#define PHY_LINK_CAP_HD10
10-Mbps, half-duplex capability mask.
Definition: phy_common.h:158
PHY_LINK_CAP_FD100
#define PHY_LINK_CAP_FD100
100-Mbps, full-duplex capability mask.
Definition: phy_common.h:164