Select one of the symbols to view example projects that use it.
 
Outline
#define __APP_NETXDUO_H__
Includes
#include "nx_api.h"
Private includes
Exported types
Exported constants
Exported macro
Exported functions prototypes
MX_NetXDuo_Init(void *);
#define IP_MEMORY_SIZE
#define DEFAULT_PRIORITY
#define PACKET_PAYLOAD_SIZE
#define ARP_CACHE_SIZE
#define NX_PACKET_POOL_SIZE
#define WAIT_OPTION
#define ENTRY_INPUT
#define THREAD_PRIO
#define THREAD_PREEMPT_THRESHOLD
#define WEB_STACK_SIZE
#define CONNECTION_PORT
#define SERVER_PACKET_SIZE
#define SERVER_STACK
#define SERVER_POOL_SIZE
#define SD_DRIVER_INFO_POINTER
#define NETX_APP_BYTE_POOL_SIZE
#define NULL_IP_ADDRESS
Files
loading...
SourceVuSTM32 Libraries and SamplesUx_Device_CDC_ECMNetXDuo/App/app_netxduo.h
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file app_netxduo.h * @author MCD Application Team * @brief NetXDuo applicative header file ****************************************************************************** * @attention * * Copyright (c) 2021 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __APP_NETXDUO_H__ #define __APP_NETXDUO_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "nx_api.h" Includes /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ Private includes /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ Exported types /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ Exported constants /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ #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)... /* USER CODE END EM */ Exported macro /* Exported functions prototypes ---------------------------------------------*/ UINT MX_NetXDuo_Init(VOID *memory_ptr); /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ Exported functions prototypes /* Private defines -----------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* IP Memory size */ #define IP_MEMORY_SIZE 2048 /* Pirority IP creation */ #define DEFAULT_PRIORITY 10 /*Packet payload size */ #define PACKET_PAYLOAD_SIZE 1536 /* APP Cache size */ #define ARP_CACHE_SIZE 1024 /* Packet pool size */ #define NX_PACKET_POOL_SIZE ((1536 + sizeof(NX_PACKET)) * 60) /* Wait option for getting @IP */ #define WAIT_OPTION 1000 /* Entry input for Main thread */ #define ENTRY_INPUT 0 /* Main Thread priority */ #define THREAD_PRIO 4 /* Main Thread preemption threshold */ #define THREAD_PREEMPT_THRESHOLD 10 /* Web application size */ #define WEB_STACK_SIZE 2048 /* HTTP connection port */ #define CONNECTION_PORT 80 /* Server packet size */ #define SERVER_PACKET_SIZE (NX_WEB_HTTP_SERVER_MIN_PACKET_SIZE * 2) /* Server stack */ #define SERVER_STACK 4096 /* Server pool size */ #define SERVER_POOL_SIZE (SERVER_PACKET_SIZE * 4) /* SD Driver information pointer */ #define SD_DRIVER_INFO_POINTER 0 /* Netx byte pool */ #define NETX_APP_BYTE_POOL_SIZE ((1024 * 10) + (ARP_CACHE_SIZE + IP_MEMORY_SIZE + WEB_STACK_SIZE)) /* define the NULL ip address */ #define NULL_IP_ADDRESS IP_ADDRESS(0,0,0,0) 17 defines/* USER CODE END PD */ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ #ifdef __cplusplus }extern "C" { ... } #endif/* ... */ #endif /* __APP_NETXDUO_H__ */
Details