arduino-pico icon indicating copy to clipboard operation
arduino-pico copied to clipboard

Feature Request: Make wizphy_setphypmode accessable

Open traxanos opened this issue 1 year ago • 3 comments

Hello,

is it possible to make wizphy_setphypmode() accessible? I would like to switch from EthernetGeneric driver to lwip. But with some switches (e.g. cisco) there are problems with auto sense. But the main reason is that I want to limit the speed to 10mbits to save a lot of power.

greets traxanos

traxanos avatar Apr 01 '24 22:04 traxanos

I think a generic Ethernet class method would be a good way of doing this. This way it's integrated with the classes and we can implement the same logic, possibly, on other Ethernet adapters.

earlephilhower avatar Apr 07 '24 09:04 earlephilhower

I have this possibility in my Ethernet library https://github.com/sstaub/Ethernet3 Maybe that parts of the code will help to integrate it to lwip.

sstaub avatar Aug 13 '24 13:08 sstaub

Thanks! It's simple enough to do but because all the Ethernet (wired and wireless) are through the same base class here I was just cogitating on how to properly expose it so you can set 100M for wired or BG for wireless. An extensible enum like you use in your own wrapper sounds like a good way to get there...

earlephilhower avatar Aug 13 '24 17:08 earlephilhower