EasyManua.ls Logo

Espressif ESP32-S2 - Page 197

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 *mac, bool enable)
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 *mac, uint32_t ability)
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 *mac)
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 clock_config
EMAC Interface clock configuration
Espressif Systems 186
Submit Document Feedback
Release v4.4

Table of Contents