Interfacing QCA7000 with ESP32

saireddy_esp32
Posts: 2
Joined: Tue Nov 08, 2022 3:33 pm

Interfacing QCA7000 with ESP32

Postby saireddy_esp32 » Tue Nov 08, 2022 3:45 pm

Hallo,

Does anyone develop a QCA7000(SPI) driver with lwip with ESP32?
I have issues regarding the attaching the driver.
esp_err_t esp_netif_attach(esp_netif_t *esp_netif, esp_netif_iodriver_handle driver_handle)

I do not know how to configure in "esp_netif_iodriver_handle".

Code: Select all

typedef struct my_netif_driver_s {
        esp_netif_driver_base_t base;           /*!< base structure reserved as esp-netif driver */
        driver_impl             *h;             /*!< handle of driver implementation */
    } my_netif_driver_t;
How to get the driver_impl?

Code: Select all

static esp_err_t my_post_attach_start(esp_netif_t * esp_netif, void * args)
{
    my_netif_driver_t *driver = args;
    const esp_netif_driver_ifconfig_t driver_ifconfig = {
            .driver_free_rx_buffer = my_free_rx_buf,
            .transmit = my_transmit,
            .handle = driver->driver_impl
    };
    driver->base.netif = esp_netif;
    ESP_ERROR_CHECK(esp_netif_set_driver_config(esp_netif, &driver_ifconfig));
    my_driver_start(driver->driver_impl);
    return ESP_OK;
}
How can I implement my_driver_start function implementation?

Code: Select all

static my_netif_driver_t qca_driver;
ESP_ERROR_CHECK(esp_netif_attach(qca_netif,&qca_driver ));
Does it correct way to call attach ?

Thank you in advance :)


Best Regards,
Sai

nikolo
Posts: 4
Joined: Wed Dec 07, 2022 8:49 am

Re: Interfacing QCA7000 with ESP32

Postby nikolo » Wed Dec 07, 2022 9:10 am

Hello, what steps have been taken? I understand that attachment is the final stage. you need to set up qca and write a driver [I/O Driver][/https://docs.espressif.com/projects/esp ... river.html]

User avatar
gerrikoio
Posts: 8
Joined: Fri Sep 28, 2018 9:41 am

Re: Interfacing QCA7000 with ESP32

Postby gerrikoio » Thu Aug 24, 2023 2:02 pm

I'm trying to do the same and I was looking to see if anyone has a ready made open source solution before trying to do this myself from scratch.

Who is online

Users browsing this forum: jesper and 89 guests