Espressif ESP32-S2 Programming Manual page 197

Hide thumbs Also See for ESP32-S2:
Table of Contents

Advertisement

Chapter 2. API Reference
• ESP_FAIL: set promiscuous mode failed because some error occurred
Parameters
• [in] mac: Ethernet MAC instance
• [in] enable: set true to enable promiscuous mode; set false to disable promiscuous mode
esp_err_t (*enable_flow_ctrl)(esp_eth_mac_t
Enable flow control on MAC layer or not.
Return
• ESP_OK: set flow control successfully
• ESP_FAIL: set flow control failed because some error occurred
Parameters
• [in] mac: Ethernet MAC instance
• [in] enable: set true to enable flow control; set false to disable flow control
esp_err_t (*set_peer_pause_ability)(esp_eth_mac_t
Set the PAUSE ability of peer node.
Return
• ESP_OK: set peer pause ability successfully
• ESP_FAIL: set peer pause ability failed because some error occurred
Parameters
• [in] mac: Ethernet MAC instance
• [in] ability: zero indicates that pause function is supported by link partner; non-zero
indicates that pause function is not supported by link partner
esp_err_t (*del)(esp_eth_mac_t
Free memory of Ethernet MAC.
Return
• ESP_OK: free Ethernet MAC instance successfully
• ESP_FAIL: free Ethernet MAC instance failed because some error occurred
Parameters
• [in] mac: Ethernet MAC instance
struct eth_mac_config_t
Configuration of Ethernet MAC object.
Public Members
uint32_t sw_reset_timeout_ms
Software reset timeout value (Unit: ms)
uint32_t rx_task_stack_size
Stack size of the receive task
uint32_t rx_task_prio
Priority of the receive task
int smi_mdc_gpio_num
SMI MDC GPIO number, set to -1 could bypass the SMI GPIO configuration
int smi_mdio_gpio_num
SMI MDIO GPIO number, set to -1 could bypass the SMI GPIO configuration
uint32_t flags
Flags that specify extra capability for mac driver
eth_data_interface_t interface
EMAC Data interface to PHY (MII/RMII)
eth_mac_clock_config_t
EMAC Interface clock configuration
Espressif Systems
*mac)
clock_config
186
Submit Document Feedback
*mac, bool enable)
*mac, uint32_t ability)
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF