esp_eth: add PHY loopback control via esp_eth_ioctl

Fixed esp_eth_ioctl command's data argument non-standard handling
This commit is contained in:
Ondrej Kosta
2021-09-03 17:24:01 +02:00
parent 502e132e5d
commit 76326e8268
13 changed files with 202 additions and 7 deletions

View File

@@ -173,6 +173,19 @@ struct esp_eth_phy_s {
*/
esp_err_t (*advertise_pause_ability)(esp_eth_phy_t *phy, uint32_t ability);
/**
* @brief
*
* @param[in] phy: Ethernet PHY instance
* @param[in] enable: enables or disables PHY loopback
*
* @return
* - ESP_OK: configures PHY instance loopback function successfully
* - ESP_FAIL: PHY instance loopback configuration failed because some error occurred
*
*/
esp_err_t (*loopback)(esp_eth_phy_t *phy, bool enable);
/**
* @brief Free memory of Ethernet PHY instance
*