1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
31
37
42
47
58
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* ... */
#ifndef __APP_NETXDUO_H__
#define __APP_NETXDUO_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "nx_api.h"
Includes
Private includes
Exported types
Exported constants
#define PRINT_ADDRESS(addr) do { \
printf("%s: %lu.%lu.%lu.%lu \n", #addr, \
(addr >> 24) & 0xff, \
(addr >> 16) & 0xff, \
(addr >> 8) & 0xff, \
addr& 0xff);\
...}while(0)...
Exported macro
UINT MX_NetXDuo_Init(VOID *memory_ptr);
Exported functions prototypes
#define IP_MEMORY_SIZE 2048
#define DEFAULT_PRIORITY 10
#define PACKET_PAYLOAD_SIZE 1536
#define ARP_CACHE_SIZE 1024
#define NX_PACKET_POOL_SIZE ((1536 + sizeof(NX_PACKET)) * 60)
#define WAIT_OPTION 1000
#define ENTRY_INPUT 0
#define THREAD_PRIO 4
#define THREAD_PREEMPT_THRESHOLD 10
#define WEB_STACK_SIZE 2048
#define CONNECTION_PORT 80
#define SERVER_PACKET_SIZE (NX_WEB_HTTP_SERVER_MIN_PACKET_SIZE * 2)
#define SERVER_STACK 4096
#define SERVER_POOL_SIZE (SERVER_PACKET_SIZE * 4)
#define SD_DRIVER_INFO_POINTER 0
#define NETX_APP_BYTE_POOL_SIZE ((1024 * 10) + (ARP_CACHE_SIZE + IP_MEMORY_SIZE + WEB_STACK_SIZE))
#define NULL_IP_ADDRESS IP_ADDRESS(0,0,0,0)
17 defines
#ifdef __cplusplus
}extern "C" { ... }
#endif/* ... */
#endif