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.
Reading PHY register
Reading PHY register
& I also believe that IDF CAN should be fixed.
-
- Posts: 290
- Joined: Wed Sep 05, 2018 6:23 am
Re: Reading PHY register
After you create the MAC instance by esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config);PeterR wrote: ↑Wed Jul 08, 2020 1:39 pmI 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.
then you can read PHY register just by mac->read_phy_reg
Who is online
Users browsing this forum: No registered users and 80 guests