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 #192 background imageLoading...
Page #192 background image
Chapter 2. API Reference
[in] phy_reg: PHY register index code
[in] reg_value: PHY register value
esp_err_t (*stack_input)(esp_eth_mediator_t *eth, uint8_t *buffer, uint32_t length)
Deliver packet to upper stack.
Return
ESP_OK: deliver packet to upper stack successfully
ESP_FAIL: deliver packet failed because some error occurred
Parameters
[in] eth: mediator of Ethernet driver
[in] buffer: packet buffer
[in] length: length of the packet
esp_err_t (*on_state_changed)(esp_eth_mediator_t *eth, esp_eth_state_t state, void *args)
Callback on Ethernet state changed.
Return
ESP_OK: process the new state successfully
ESP_FAIL: process the new state failed because some error occurred
Parameters
[in] eth: mediator of Ethernet driver
[in] state: new state
[in] args: optional argument for the new state
Macros
ETH_MAX_PAYLOAD_LEN
Maximum Ethernet payload size.
ETH_MIN_PAYLOAD_LEN
Minimum Ethernet payload size.
ETH_HEADER_LEN
Ethernet frame header size: Dest addr(6 Bytes) + Src addr(6 Bytes) + length/type(2 Bytes)
ETH_VLAN_TAG_LEN
Optional 802.1q VLAN Tag length.
ETH_JUMBO_FRAME_PAYLOAD_LEN
Jumbo frame payload size.
ETH_MAX_PACKET_SIZE
Maximum frame size (1522 Bytes)
ETH_MIN_PACKET_SIZE
Minimum frame size (64 Bytes)
Type Definitions
typedef struct esp_eth_mediator_s esp_eth_mediator_t
Ethernet mediator.
Enumerations
enum esp_eth_state_t
Ethernet driver state.
Values:
ETH_STATE_LLINIT
Lowlevel init done
ETH_STATE_DEINIT
Deinit done
Espressif Systems 181
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