Documentation

Documentation

Includes

lwip/arch.h

#include "lwip/arch.h"
#include "lwip/arch.h"

lwip/opt.h

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

Macros

Marco LWIP_HDR_DEBUG_H

#define LWIP_HDR_DEBUG_H


      

Marco LWIP_DBG_LEVEL_ALL

#define LWIP_DBG_LEVEL_ALL    0
/** Debug level: ALL messages*/

Marco LWIP_DBG_LEVEL_WARNING

#define LWIP_DBG_LEVEL_WARNING 1
/** Debug level: Warnings. bad checksums, dropped packets, ... */

Marco LWIP_DBG_LEVEL_SERIOUS

#define LWIP_DBG_LEVEL_SERIOUS 2
/** Debug level: Serious. memory allocation failures, ... */

Marco LWIP_DBG_LEVEL_SEVERE

#define LWIP_DBG_LEVEL_SEVERE 3
/** Debug level: Severe */

Marco LWIP_DBG_MASK_LEVEL

#define LWIP_DBG_MASK_LEVEL   3


      

Marco LWIP_DBG_LEVEL_OFF

#define LWIP_DBG_LEVEL_OFF    LWIP_DBG_LEVEL_ALL
/* compatibility define only */

Marco LWIP_DBG_ON

#define LWIP_DBG_ON           0x80U
/** flag for LWIP_DEBUGF to enable that debug message */

Marco LWIP_DBG_OFF

#define LWIP_DBG_OFF          0x00U
/** flag for LWIP_DEBUGF to disable that debug message */

Marco LWIP_DBG_TRACE

#define LWIP_DBG_TRACE        0x40U
/** flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) */

Marco LWIP_DBG_STATE

#define LWIP_DBG_STATE        0x20U
/** flag for LWIP_DEBUGF indicating a state debug message (to follow module states) */

Marco LWIP_DBG_FRESH

#define LWIP_DBG_FRESH        0x10U
/** flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet */

Marco LWIP_DBG_HALT

#define LWIP_DBG_HALT         0x08U
/** flag for LWIP_DEBUGF to halt after printing this debug message */

Marco LWIP_NOASSERT

#define LWIP_NOASSERT


      

Marco LWIP_ASSERT(message, assertion)

#define LWIP_ASSERT(message, assertion) do { if (!(assertion)) { \
 LWIP_PLATFORM_ASSERT(message); }} while(0)


      

Marco LWIP_ASSERT

#define LWIP_ASSERT(message, assertion)


      

Marco LWIP_PLATFORM_ERROR(message)

#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_ASSERT(message)


      

Marco LWIP_PLATFORM_ERROR(message)

#define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_DIAG((message))


      

Marco LWIP_PLATFORM_ERROR

#define LWIP_PLATFORM_ERROR(message)


      

Marco LWIP_ERROR(message, expression, handler)

#define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \
 LWIP_PLATFORM_ERROR(message); handler;}} while(0)
/* if "expression" isn't true, then print "message" and execute "handler" expression */

Marco LWIP_DEBUG

#define LWIP_DEBUG


      

Marco LWIP_DEBUGF(debug, message)

#define LWIP_DEBUGF(debug, message) do { \
                              if ( \
                                  ((debug) & LWIP_DBG_ON) && \
                                  ((debug) & LWIP_DBG_TYPES_ON) && \
                                  ((s16_t)((debug) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \
                                LWIP_PLATFORM_DIAG(message); \
                                if ((debug) & LWIP_DBG_HALT) { \
                                  while(1); \
                                } \
                              } \
                            } while(0)


      

Marco LWIP_DEBUGF

#define LWIP_DEBUGF(debug, message)

      

Functions

Vars

Consts

Types

Typedefs