mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -128,6 +128,19 @@ struct esp_eth_phy_s {
|
||||
*/
|
||||
esp_err_t (*get_link)(esp_eth_phy_t *phy);
|
||||
|
||||
/**
|
||||
* @brief Set Ethernet PHY link status
|
||||
*
|
||||
* @param[in] phy: Ethernet PHY instance
|
||||
* @param[in] link new link status
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: set Ethernet PHY link status successfully
|
||||
* - ESP_FAIL: set Ethernet PHY link status failed because some error occurred
|
||||
*
|
||||
*/
|
||||
esp_err_t (*set_link)(esp_eth_phy_t *phy, eth_link_t link);
|
||||
|
||||
/**
|
||||
* @brief Power control of Ethernet PHY
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user