Microchip® Advanced Software Framework

ethernet_phy.h File Reference

API driver for DM9161A PHY component.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "board.h"
#include "emac.h"

Functions

uint8_t ethernet_phy_auto_negotiate (Emac *p_emac, uint8_t uc_phy_addr)
 Issue an auto negotiation of the PHY. More...
 
uint8_t ethernet_phy_init (Emac *p_emac, uint8_t uc_phy_addr, uint32_t ul_mck)
 Perform a HW initialization to the PHY ( via RSTC ) and set up clocks. More...
 
uint8_t ethernet_phy_reset (Emac *p_emac, uint8_t uc_phy_addr)
 Issue a SW reset to reset all registers of the PHY. More...
 
uint8_t ethernet_phy_set_link (Emac *p_emac, uint8_t uc_phy_addr, uint8_t uc_apply_setting_flag)
 Get the Link & speed settings, and automatically set up the EMAC with the settings. More...