Select one of the symbols to view example projects that use it.
 
Outline
#include "esp_netif.h"
esp_netif_br_glue_t
esp_netif_br_glue_new();
esp_netif_br_glue_add_port(esp_netif_br_glue_handle_t, esp_netif_t *);
esp_netif_br_glue_add_wifi_port(esp_netif_br_glue_handle_t, esp_netif_t *);
esp_netif_br_glue_del(esp_netif_br_glue_handle_t);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_netif/include/esp_netif_br_glue.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include "esp_netif.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Handle of bridge netif glue - an intermediate layer between ESP-NETIF and bridge ports ESP-NETIFs * to access ports io drivers properties * *//* ... */ typedef struct esp_netif_br_glue_t* esp_netif_br_glue_handle_t; /** * @brief Create a netif glue for bridge * @note bridge netif glue is used to attach ports netifs to the bridge (e.g. to get io driver statuses) * * @return - glue object on success * - NULL on fail *//* ... */ esp_netif_br_glue_handle_t esp_netif_br_glue_new(void); /** * @brief Add Ethernet port to the bridge netif glue * * @param netif_br_glue bridge netif glue * @param esp_netif_port Ethernet port netif * @return - ESP_OK on success *//* ... */ esp_err_t esp_netif_br_glue_add_port(esp_netif_br_glue_handle_t netif_br_glue, esp_netif_t *esp_netif_port); /** * @brief Add WiFi port to the bridge netif glue * * @param netif_br_glue bridge netif glue * @param esp_netif_port WiFi port netif * @return - ESP_OK on success *//* ... */ esp_err_t esp_netif_br_glue_add_wifi_port(esp_netif_br_glue_handle_t netif_br_glue, esp_netif_t *esp_netif_port); /** * @brief Delete netif glue of bridge * * @param netif_br_glue bridge netif glue * @return - ESP_OK: delete netif glue successfully *//* ... */ esp_err_t esp_netif_br_glue_del(esp_netif_br_glue_handle_t netif_br_glue); #ifdef __cplusplus }{...} #endif
Details