esp_eth_phy_802_3_detect_phy_addr() function
Detect PHY address
Arguments
eth
Mediator of Ethernet driver
detected_addr
a valid address after detection
Return value
- ESP_OK: detect phy address successfully - ESP_ERR_INVALID_ARG: invalid parameter - ESP_ERR_NOT_FOUND: can't detect any PHY device - ESP_FAIL: detect phy address failed because some error occurred