uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
def.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"

Go to the source code of this file.

Macros

#define LWIP_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define LWIP_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define NULL   ((void *)0)
 
#define LWIP_U32_DIFF(a, b)   (((a) >= (b)) ? ((a) - (b)) : (((a) + ((b) ^ 0xFFFFFFFF) + 1)))
 
#define LWIP_MAKE_U16(a, b)   ((a << 8) | b)
 
#define LWIP_PLATFORM_BYTESWAP   0
 
#define htons(x)   lwip_htons(x)
 
#define ntohs(x)   lwip_ntohs(x)
 
#define htonl(x)   lwip_htonl(x)
 
#define ntohl(x)   lwip_ntohl(x)
 
#define lwip_htons(x)   (x)
 
#define lwip_ntohs(x)   (x)
 
#define lwip_htonl(x)   (x)
 
#define lwip_ntohl(x)   (x)
 
#define PP_HTONS(x)   (x)
 
#define PP_NTOHS(x)   (x)
 
#define PP_HTONL(x)   (x)
 
#define PP_NTOHL(x)   (x)
 

Macro Definition Documentation

#define htonl (   x)    lwip_htonl(x)

Definition at line 83 of file def.h.

#define htons (   x)    lwip_htons(x)

Definition at line 81 of file def.h.

#define lwip_htonl (   x)    (x)

Definition at line 90 of file def.h.

#define lwip_htons (   x)    (x)

Definition at line 88 of file def.h.

#define LWIP_MAKE_U16 (   a,
 
)    ((a << 8) | b)

Definition at line 56 of file def.h.

#define LWIP_MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))

Definition at line 43 of file def.h.

#define LWIP_MIN (   x,
 
)    (((x) < (y)) ? (x) : (y))

Definition at line 44 of file def.h.

#define lwip_ntohl (   x)    (x)

Definition at line 91 of file def.h.

#define lwip_ntohs (   x)    (x)

Definition at line 89 of file def.h.

#define LWIP_PLATFORM_BYTESWAP   0

Definition at line 62 of file def.h.

#define LWIP_U32_DIFF (   a,
 
)    (((a) >= (b)) ? ((a) - (b)) : (((a) + ((b) ^ 0xFFFFFFFF) + 1)))

Get the absolute difference between 2 u32_t values (correcting overflows) 'a' is expected to be 'higher' (without overflow) than 'b'.

Definition at line 52 of file def.h.

#define ntohl (   x)    lwip_ntohl(x)

Definition at line 84 of file def.h.

#define ntohs (   x)    lwip_ntohs(x)

Definition at line 82 of file def.h.

#define NULL   ((void *)0)

Definition at line 47 of file def.h.

#define PP_HTONL (   x)    (x)

Definition at line 94 of file def.h.

#define PP_HTONS (   x)    (x)

Definition at line 92 of file def.h.

#define PP_NTOHL (   x)    (x)

Definition at line 95 of file def.h.

#define PP_NTOHS (   x)    (x)

Definition at line 93 of file def.h.