Document netif API in doxygen module style

This commit is contained in:
Dirk Ziegelmeier 2016-07-26 17:53:07 +02:00
parent 0fea2bc02e
commit 9c10daba93
5 changed files with 18 additions and 2 deletions

View File

@ -31,6 +31,12 @@
*
*/
/**
* @defgroup netifapi Thread-safe API
* @ingroup netif
* Thread-safe functions to be called from non-TCPIP threads
*/
#include "lwip/opt.h"
#if LWIP_NETIF_API /* don't build if not configured for use in lwipopts.h */
@ -108,6 +114,7 @@ netifapi_do_netif_common(struct tcpip_api_call_data *m)
}
/**
* @ingroup netifapi
* Call netif_add() in a thread-safe way by running that function inside the
* tcpip_thread context.
*
@ -152,6 +159,7 @@ netifapi_netif_add(struct netif *netif,
#if LWIP_IPV4
/**
* @ingroup netifapi
* Call netif_set_addr() in a thread-safe way by running that function inside the
* tcpip_thread context.
*

View File

@ -60,6 +60,8 @@
* must be implemented by the module that uses the resolver).
*
* All functions must be called from TCPIP thread.
*
* @see @ref netconn_dns
*/
/*-----------------------------------------------------------------------------

View File

@ -40,7 +40,7 @@
* @defgroup tcp_raw TCP
* @ingroup raw_api
* Transmission Control Protocol for IP\n
* @see @ref raw_api
* @see @ref raw_api and @ref netconn
*
* Common functions for the TCP implementation, such as functinos
* for manipulating the data structures and the TCP timer functions. TCP functions

View File

@ -40,7 +40,7 @@
* @defgroup udp_raw UDP
* @ingroup raw_api
* User Datagram Protocol module\n
* @see @ref raw_api
* @see @ref raw_api and @ref netconn
*/
/* udp.c

View File

@ -92,15 +92,21 @@ err_t netifapi_netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr,
err_t netifapi_netif_common(struct netif *netif, netifapi_void_fn voidfunc,
netifapi_errt_fn errtfunc);
/** @ingroup netifapi */
#define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL)
/** @ingroup netifapi */
#define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL)
/** @ingroup netifapi */
#define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL)
/** @ingroup netifapi */
#define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL)
#define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start)
#define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL)
#define netifapi_dhcp_inform(n) netifapi_netif_common(n, dhcp_inform, NULL)
#define netifapi_dhcp_renew(n) netifapi_netif_common(n, NULL, dhcp_renew)
#define netifapi_dhcp_release(n) netifapi_netif_common(n, NULL, dhcp_release)
#define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start)
#define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop)