uploaded 1 week ago
This component initializes Ethernet driver based on Espressif IoT Development Framework Configuration.

readme

# Component for Ethernet Initialization

This component makes it easier to set up and control Ethernet connections in Espressif IoT projects. It hides the lower-level complexities of Ethernet driver initialization and configuration, so developers can focus on building their applications without delving deep into hardware details.
It also allows users to select from various supported Ethernet chips, making development faster.

Supported devices are:
* IP101
* RTL8201/SR8201
* LAN87xx
* DP83848
* KSZ80xx
* SPI Ethernet:
    * DM9051 Module
    * KSZ8851SNL Module
    * W5500 Module

## API

### Steps to use the component in an example code:
1. Add this component to your project using ```idf.py add-dependency``` command.
2. Include ```ethernet_init.h```
3. Call the following functions as required:
    ```c
    // Initialize Ethernet driver
    ESP_ERROR_CHECK(ethernet_init_all(&eth_handles, &eth_port_cnt));

    // Get the device information of the ethernet handle
    eth_dev_info_t eth_info = ethernet_init_get_dev_info(eth_handle);

    // Stop and Deinitialize ethernet
    ethernet_deinit_all(eth_handles);
    ```

Links

Supports all targets

License: Apache-2.0

To add this component to your project, run:

idf.py add-dependency "espressif/ethernet_init^0.2.1"

or download archive

Dependencies

  • ESP-IDF >=5.1
  • Examples:

    simple-ethernet

    To create a project from this example, run:

    idf.py create-project-from-example "espressif/ethernet_init^0.2.1:simple-ethernet"

    or download archive (4.00 KB)

    Stats

    • Archive size
      Archive size: 13.57 KB
    • Downloaded in total
      Downloaded in total 1.9k times
    • Downloaded this version
      This version: 19 times

    Badge

    espressif/ethernet_init version: 0.2.1
    |