EasyManuals Logo

Espressif ESP32-S2 User Manual

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
Page #194 background imageLoading...
Page #194 background image
Chapter 2. API Reference
Public Members
struct eth_mac_clock_config_t::[anonymous] mii
EMAC MII Clock Configuration
emac_rmii_clock_mode_t clock_mode
RMII Clock Mode Configuration
emac_rmii_clock_gpio_t clock_gpio
RMII Clock GPIO Configuration
struct eth_mac_clock_config_t::[anonymous] rmii
EMAC RMII Clock Configuration
Structures
struct esp_eth_mac_s
Ethernet MAC.
Public Members
esp_err_t (*set_mediator)(esp_eth_mac_t *mac, esp_eth_mediator_t *eth)
Set mediator for Ethernet MAC.
Return
ESP_OK: set mediator for Ethernet MAC successfully
ESP_ERR_INVALID_ARG: set mediator for Ethernet MAC failed because of invalid argu-
ment
Parameters
[in] mac: Ethernet MAC instance
[in] eth: Ethernet mediator
esp_err_t (*init)(esp_eth_mac_t *mac)
Initialize Ethernet MAC.
Return
ESP_OK: initialize Ethernet MAC successfully
ESP_ERR_TIMEOUT: initialize Ethernet MAC failed because of timeout
ESP_FAIL: initialize Ethernet MAC failed because some other error occurred
Parameters
[in] mac: Ethernet MAC instance
esp_err_t (*deinit)(esp_eth_mac_t *mac)
Deinitialize Ethernet MAC.
Return
ESP_OK: deinitialize Ethernet MAC successfully
ESP_FAIL: deinitialize Ethernet MAC failed because some error occurred
Parameters
[in] mac: Ethernet MAC instance
esp_err_t (*start)(esp_eth_mac_t *mac)
Start Ethernet MAC.
Return
ESP_OK: start Ethernet MAC successfully
ESP_FAIL: start Ethernet MAC failed because some other error occurred
Parameters
[in] mac: Ethernet MAC instance
esp_err_t (*stop)(esp_eth_mac_t *mac)
Stop Ethernet MAC.
Return
Espressif Systems 183
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish