TuyaOS
宏定义 | 函数
def.h 文件参考
#include "lwip/arch.h"
#include "lwip/opt.h"
def.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define htonl(x)   lwip_htonl(x)
 
#define htons(x)   lwip_htons(x)
 
#define LWIP_ARRAYSIZE(x)   (sizeof(x)/sizeof((x)[0]))
 
#define lwip_htonl(x)   ((u32_t)(x))
 
#define lwip_htons(x)   ((u16_t)(x))
 
#define LWIP_MAKEU32(a, b, c, d)
 
#define LWIP_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define LWIP_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define lwip_ntohl(x)   ((u32_t)(x))
 
#define lwip_ntohs(x)   ((u16_t)(x))
 
#define ntohl(x)   lwip_ntohl(x)
 
#define ntohs(x)   lwip_ntohs(x)
 
#define NULL   ((void *)0)
 
#define PERF_START   /* null definition */
 
#define PERF_STOP(x)   /* null definition */
 
#define PP_HTONL(x)   ((u32_t)(x))
 
#define PP_HTONS(x)   ((u16_t)(x))
 
#define PP_NTOHL(x)   ((u32_t)(x))
 
#define PP_NTOHS(x)   ((u16_t)(x))
 

函数

void lwip_itoa (char *result, size_t bufsize, int number)
 
int lwip_stricmp (const char *str1, const char *str2)
 
int lwip_strnicmp (const char *str1, const char *str2, size_t len)
 
char * lwip_strnstr (const char *buffer, const char *token, size_t n)
 

详细描述

various utility macros

宏定义说明

◆ LWIP_MAKEU32

#define LWIP_MAKEU32 (   a,
  b,
  c,
 
)
值:
(((u32_t)((a) & 0xff) << 24) | \
((u32_t)((b) & 0xff) << 16) | \
((u32_t)((c) & 0xff) << 8) | \
(u32_t)((d) & 0xff))

Create u32_t value from bytes