Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Ethernet Link Status

Altera_Forum
Honored Contributor II
914 Views

Good day, I'm running the Altera simple socket server on the DE2-70 board. I would like to detect when the link is down on the Ethernet port. Is there a routine that can be called that returns its status? 

 

Thanks 

JT
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
195 Views

If you have tse mac, you can try alt_tse_phy_rd_mdio_reg() which is declared in altera_avalon_tse.h. 

The register to read and the bit sowing link status will depend from your specific phy.
0 Kudos
Reply