AM64x MCU+ SDK  10.01.00
dp83867.h File Reference

Introduction

This file contains the type definitions and helper macros for the DP83867 Ethernet PHY.

Go to the source code of this file.

Data Structures

struct  Dp83867_Cfg
 DP83867 PHY configuration parameters. More...
 

Macros

#define DP83867_LED_NUM   (4U)
 Number of LEDs available in the PHY. More...
 

Enumerations

enum  Dp83867_Gpio0Mode {
  DP83867_GPIO0_RXERR = 0x0U, DP83867_GPIO0_1588TXSFD = 0x1U, DP83867_GPIO0_1588RXSFD = 0x2U, DP83867_GPIO0_WOL = 0x3U,
  DP83867_GPIO0_ENERGYDET = 0x4U, DP83867_GPIO0_LED3 = 0x6U, DP83867_GPIO0_PRBSERR = 0x7U, DP83867_GPIO0_CONSTANT0 = 0x8U,
  DP83867_GPIO0_CONSTANT1 = 0x9U
}
 GPIO_0 mux modes. More...
 
enum  Dp83867_Gpio1Mode {
  DP83867_GPIO1_COL = 0x0U, DP83867_GPIO1_1588TXSFD = 0x1U, DP83867_GPIO1_1588RXSFD = 0x2U, DP83867_GPIO1_WOL = 0x3U,
  DP83867_GPIO1_ENERGYDET = 0x4U, DP83867_GPIO1_LED3 = 0x6U, DP83867_GPIO1_PRBSERR = 0x7U, DP83867_GPIO1_CONSTANT0 = 0x8U,
  DP83867_GPIO1_CONSTANT1 = 0x9U
}
 GPIO_1 mux modes. More...
 
enum  Dp83867_LedMode {
  DP83867_LED_LINKED = 0x0U, DP83867_LED_RXTXACT = 0x1U, DP83867_LED_TXACT = 0x2U, DP83867_LED_RXACT = 0x3U,
  DP83867_LED_COLLDET = 0x4U, DP83867_LED_LINKED_1000BT = 0x5U, DP83867_LED_LINKED_100BTX = 0x6U, DP83867_LED_LINKED_10BT = 0x7U,
  DP83867_LED_LINKED_10100BT = 0x8U, DP83867_LED_LINKED_1001000BT = 0x9U, DP83867_LED_FULLDUPLEX = 0xAU, DP83867_LED_LINKED_BLINKACT = 0xBU,
  DP83867_LED_RXTXERR = 0xDU, DP83867_LED_RXERR = 0xEU
}
 LED modes (sources). More...
 

Functions

void Dp83867_initCfg (Dp83867_Cfg *cfg)
 Initialize DP83867 PHY specific config params. More...
 
void Dp83867_bind (EthPhyDrv_Handle *hPhy, uint8_t phyAddr, Phy_RegAccessCb_t *pRegAccessCb)
 
bool Dp83867_isPhyDevSupported (EthPhyDrv_Handle hPhy, const void *pVersion)
 
bool Dp83867_isMacModeSupported (EthPhyDrv_Handle hPhy, Phy_Mii mii)
 
int32_t Dp83867_config (EthPhyDrv_Handle hPhy, const void *pExtCfg, const uint32_t extCfgSize, Phy_Mii mii, bool loopbackEn)
 
void Dp83867_reset (EthPhyDrv_Handle hPhy)
 
bool Dp83867_isResetComplete (EthPhyDrv_Handle hPhy)
 
void Dp83867_printRegs (EthPhyDrv_Handle hPhy)