PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

Added ability to check link state on supported chips (5200 5500(?)) #20

Closed dubpixel closed 6 years ago

dubpixel commented 6 years ago

checks general register 0x0035 - returns masked and shifted value of bit 5

user would do:

Ethernet.getLINK();

to return a value of 0 or 1 if port is linked.

PaulStoffregen commented 6 years ago

Solved by https://github.com/PaulStoffregen/Ethernet/commit/5f89ae0cd1a23ea60c9c50c3fcb8f4e34a13d47b