Functions | |
| static bool | dp83867_check_id (ENET_Type *ptr, uint32_t phy_addr) |
| static void | dp83867_write_phy_ext (ENET_Type *ptr, uint32_t phy_addr, uint32_t addr, uint32_t data) |
| static uint16_t | dp83867_read_phy_ext (ENET_Type *ptr, uint32_t phy_addr, uint32_t addr) |
| bool | dp83867_reset (ENET_Type *ptr, uint32_t phy_addr) |
| Reset DP83867 PHY chip. More... | |
| void | dp83867_basic_mode_default_config (ENET_Type *ptr, dp83867_config_t *config) |
| Set default configuration for DP83867 PHY basic mode. More... | |
| bool | dp83867_basic_mode_init (ENET_Type *ptr, uint32_t phy_addr, dp83867_config_t *config) |
| Initialize DP83867 PHY chip in basic mode. More... | |
| void | dp83867_get_phy_status (ENET_Type *ptr, uint32_t phy_addr, enet_phy_status_t *status) |
| Get DP83867 PHY status. More... | |
| void | dp83867_set_mdi_crossover_mode (ENET_Type *ptr, uint32_t phy_addr, enet_phy_crossover_mode_t mode) |
| Set MDI crossover mode for DP83867 PHY. More... | |
| void dp83867_basic_mode_default_config | ( | ENET_Type * | ptr, |
| dp83867_config_t * | config | ||
| ) |
Set default configuration for DP83867 PHY basic mode.
| [in] | ptr | Pointer to the ENET peripheral base address |
| [out] | config | Pointer to the configuration structure to be initialized |
This function initializes the configuration structure with default values:
| bool dp83867_basic_mode_init | ( | ENET_Type * | ptr, |
| uint32_t | phy_addr, | ||
| dp83867_config_t * | config | ||
| ) |
Initialize DP83867 PHY chip in basic mode.
| [in] | ptr | Pointer to the ENET peripheral base address |
| [in] | phy_addr | PHY address |
| [in] | config | Pointer to the PHY configuration structure |
| true | Initialization completed successfully |
| false | Initialization failed (PHY ID check failed) |
This function performs the following operations:
|
static |
| void dp83867_get_phy_status | ( | ENET_Type * | ptr, |
| uint32_t | phy_addr, | ||
| enet_phy_status_t * | status | ||
| ) |
Get DP83867 PHY status.
| [in] | ptr | Pointer to the ENET peripheral base address |
| [in] | phy_addr | PHY address |
| [out] | status | Pointer to the status structure to store PHY status |
This function reads the PHY status register and extracts:
|
static |
| bool dp83867_reset | ( | ENET_Type * | ptr, |
| uint32_t | phy_addr | ||
| ) |
Reset DP83867 PHY chip.
| [in] | ptr | Pointer to the ENET peripheral base address |
| [in] | phy_addr | PHY address |
| true | Reset operation completed successfully |
| false | Reset operation failed (timeout) |
| void dp83867_set_mdi_crossover_mode | ( | ENET_Type * | ptr, |
| uint32_t | phy_addr, | ||
| enet_phy_crossover_mode_t | mode | ||
| ) |
Set MDI crossover mode for DP83867 PHY.
| [in] | ptr | Pointer to the ENET peripheral base address |
| [in] | phy_addr | PHY address |
| [in] | mode | Crossover mode: enet_phy_crossover_mode_t |
This function configures the MDI/MDIX crossover mode for the PHY. The crossover mode determines how the PHY handles cable connections.
|
static |