Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
To be called from non-TCPIP threads. More...
| Functions | |
| err_t | netifapi_netif_add (struct netif *netif,#if LWIP_IPV4 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,#endifvoid *state, netif_init_fn init, netif_input_fn input) | 
| Call netif_add() in a thread-safe way by running that function inside the tcpip_thread context. | |
| err_t | netifapi_netif_set_addr (struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) | 
| Call netif_set_addr() in a thread-safe way by running that function inside the tcpip_thread context. | |
| err_t | netifapi_netif_name_to_index (const char *name, u8_t *idx) | 
| Call netif_name_to_index() in a thread-safe way by running that function inside the tcpip_thread context. | |
| err_t | netifapi_netif_index_to_name (u8_t idx, char *name) | 
| Call netif_index_to_name() in a thread-safe way by running that function inside the tcpip_thread context. | |
Detailed Description
To be called from non-TCPIP threads.
Function Documentation
| err_t netifapi_netif_add | ( | struct netif * | netif, | 
| #if LWIP_IPV4 const ip4_addr_t * | ipaddr, | ||
| const ip4_addr_t * | netmask, | ||
| const ip4_addr_t * | gw, | ||
| #endif void * | state, | ||
| netif_init_fn | init, | ||
| netif_input_fn | input | ||
| ) | 
Call netif_add() in a thread-safe way by running that function inside the tcpip_thread context.
- Note:
- for params
- See also:
- netif_add()
Definition at line 222 of file lwip_netifapi.c.
| err_t netifapi_netif_index_to_name | ( | u8_t | idx, | 
| char * | name | ||
| ) | 
Call netif_index_to_name() in a thread-safe way by running that function inside the tcpip_thread context.
- Parameters:
- 
  idx the interface index of the netif name output name of the found netif, empty '\0' string if netif not found. name should be of at least NETIF_NAMESIZE bytes 
Definition at line 359 of file lwip_netifapi.c.
| err_t netifapi_netif_name_to_index | ( | const char * | name, | 
| u8_t * | idx | ||
| ) | 
Call netif_name_to_index() in a thread-safe way by running that function inside the tcpip_thread context.
- Parameters:
- 
  name the interface name of the netif idx output index of the found netif 
Definition at line 327 of file lwip_netifapi.c.
| err_t netifapi_netif_set_addr | ( | struct netif * | netif, | 
| const ip4_addr_t * | ipaddr, | ||
| const ip4_addr_t * | netmask, | ||
| const ip4_addr_t * | gw | ||
| ) | 
Call netif_set_addr() in a thread-safe way by running that function inside the tcpip_thread context.
- Note:
- for params
- See also:
- netif_set_addr()
Definition at line 267 of file lwip_netifapi.c.
Generated on Tue Jul 12 2022 13:55:22 by
 1.7.2
 1.7.2