Microchip® Advanced Software Framework

gmac_phy.c File Reference

GMAC PHY (Ethernet MAC) driver for SAM.

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

#include "compiler.h"
#include "gmac.h"
#include <string.h>
#include "conf_eth.h"

Functions

uint8_t gmac_phy_read (Gmac *p_gmac, uint8_t uc_phy_address, uint8_t uc_address, uint32_t *p_value)
 Read the PHY register. More...
 
static uint8_t gmac_phy_wait (Gmac *p_gmac, const uint32_t ul_retry)
 Wait PHY operation to be completed. More...
 
uint8_t gmac_phy_write (Gmac *p_gmac, uint8_t uc_phy_address, uint8_t uc_address, uint32_t ul_value)
 Write the PHY register. More...