espressif/vsc8541

0.2.0

Latest
uploaded 2 days ago
VSC8541 Ethernet PHY Driver

Readme

# VSC8541 Ethernet PHY Driver

## Overview

VSC8541 is a single port 10/100/1000BASE-T Gigabit Ethernet transceiver from Microchip (formerly Vitesse).
The driver supports link/speed/duplex detection over the MII/GMII/RMII/RGMII interfaces exposed by the chip.

## ESP-IDF Usage

Add this component from [IDF Component Manager](https://components.espressif.com/) to your project using `idf.py add-dependency` and include `esp_eth_phy_vsc8541.h`,

```c
#include "esp_eth_phy_vsc8541.h"
```

create a `phy` driver instance by calling `esp_eth_phy_new_vsc8541()`

```c
eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();

// Update PHY config based on board specific configuration
phy_config.phy_addr = CONFIG_EXAMPLE_ETH_PHY_ADDR;
phy_config.reset_gpio_num = CONFIG_EXAMPLE_ETH_PHY_RST_GPIO;
esp_eth_phy_t *phy = esp_eth_phy_new_vsc8541(&phy_config);
```

For more information of how to use ESP-IDF Ethernet driver, visit [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_eth.html).

Links

To add this component to your project, run:

idf.py add-dependency "espressif/vsc8541^0.2.0"

download archive

Stats

  • Archive size
    Archive size ~ 9.62 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

espressif/vsc8541 version: 0.2.0
|