Rtos API example
netifapi.h File Reference
netif API (to be used from non-TCPIP threads) More...
Go to the source code of this file.
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_common (struct netif *netif, netifapi_void_fn voidfunc, netifapi_errt_fn errtfunc) |
call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) in a thread-safe way by running that function inside the tcpip_thread context. |
Detailed Description
netif API (to be used from non-TCPIP threads)
Definition in file netifapi.h.
Function Documentation
err_t netifapi_netif_common | ( | struct netif * | netif, |
netifapi_void_fn | voidfunc, | ||
netifapi_errt_fn | errtfunc | ||
) |
call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) in a thread-safe way by running that function inside the tcpip_thread context.
- Note:
- use only for functions where there is only "netif" parameter.
Definition at line 206 of file lwip_netifapi.c.
Generated on Sun Jul 17 2022 08:25:35 by 1.7.2