Documentation

Documentation

Includes

lwip/opt.h

#include "lwip/opt.h"
#include "lwip/opt.h"

lwip/err.h

#include "lwip/err.h"
#include "lwip/err.h"

lwip/sys.h

#include "lwip/sys.h"
#include "lwip/sys.h"

Macros

Marco LWIP_HDR_TIMEOUTS_H

#define LWIP_HDR_TIMEOUTS_H


      

Marco LWIP_DEBUG_TIMERNAMES

#define LWIP_DEBUG_TIMERNAMES SYS_DEBUG


      

Marco LWIP_DEBUG_TIMERNAMES

#define LWIP_DEBUG_TIMERNAMES 0


      

Marco SYS_TIMEOUTS_SLEEPTIME_INFINITE

#define SYS_TIMEOUTS_SLEEPTIME_INFINITE 4294967295
/** Returned by sys_timeouts_sleeptime() to indicate there is no timer, so we
 * can sleep forever.
 */

Marco sys_timeout(msecs, handler, arg)

#define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler)

      

Functions

Func sys_timeouts_init

void sys_timeouts_init(void);


      

Func sys_timeout_debug

void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_name);


      

Func sys_timeout

void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg);


      

Func sys_untimeout

void sys_untimeout(sys_timeout_handler handler, void *arg);


      

Func sys_restart_timeouts

void sys_restart_timeouts(void);


      

Func sys_check_timeouts

void sys_check_timeouts(void);


      

Func sys_timeouts_sleeptime

u32_t sys_timeouts_sleeptime(void);


      

Func lwip_cyclic_timer

void lwip_cyclic_timer(void *arg);

      

Vars

Variable sys_timeo

struct sys_timeo** sys_timeouts_get_next_timeout(void);

      

Consts

Types

Typedefs

Typedef lwip_cyclic_timer_handler

typedef void (* lwip_cyclic_timer_handler)(void);
/** Function prototype for a stack-internal timer function that has to be
 * called at a defined interval */

Typedef sys_timeout_handler

typedef void (* sys_timeout_handler)(void *arg);
/** Function prototype for a timeout callback function. Register such a function
 * using sys_timeout().
 *
 * @param arg Additional argument to pass to the function - set up by sys_timeout()
 */