Reading PHY register
Posted: Wed Jul 08, 2020 1:39 pm
I need to dump the Ethernet's PHY registers (LAN8710) for diagnostics & debug.
esp_eth_driver_t contains the element esp_eth_mediator_t mediator which has member phy_reg_read
Unfortunately the esp_eth_driver_t type is private. We get the void * cast esp_eth_handle_t.
How do I gain access to the PHY interface? I could expose esp_eth_driver_t but would rather not edit the IDF for obvious reasons.
esp_eth_driver_t contains the element esp_eth_mediator_t mediator which has member phy_reg_read
Unfortunately the esp_eth_driver_t type is private. We get the void * cast esp_eth_handle_t.
How do I gain access to the PHY interface? I could expose esp_eth_driver_t but would rather not edit the IDF for obvious reasons.