-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHY status API for ethernet drivers #8784
Conversation
@JAndrassy Do you know if Link/PHY status can be read by software for W5100 and ENC28j60 ? |
@d-a-v yes it is possible PHY register 0x11 bit 10 |
@JAndrassy Thanks ! It seems W5100 can't deliver link status readable by software ? |
btw do we care about Ethernet compatibility? edit: probably not |
* PHY status API for W5500 & ENC28J60 drivers * move linkStatus() from ArduinoEthernet:: to LwipIntfDev:: * LwipIntfDev: include PHY status into ::connected()
Implementation of
::isLinked()
for ethernet drivers:This function returns true when the ethernet chip is physically connected.
(edited) It currently works and has been tested with W5500 and ENC28J60, and it seems it is not implementable with W5100.
An additional
::isLinkDetectable()
tells when::isLinked()
is not trivially implemented.(edited)
::connected()
is software only and is left unmodified for backward compatibilityis updated to check link status to solve compatibility with WiFi API.Closes #8099