]> begriffs open source - cmsis-driver-validation/blob - Source/Config/DV_Config.h
Update documentation hosted on github
[cmsis-driver-validation] / Source / Config / DV_Config.h
1 /*-----------------------------------------------------------------------------
2  *      Name:         DV_Config.h
3  *      Purpose:      DV Config header
4  *      Version:      1.2.2
5  *----------------------------------------------------------------------------
6  *      Copyright(c) KEIL - An ARM Company
7  *----------------------------------------------------------------------------*/
8 #ifndef __DV_CONFIG_H
9 #define __DV_CONFIG_H
10
11 #include <stdint.h>
12 #include "RTE_Components.h"
13
14 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
15
16 // <h> Common Test Settings
17 // <o> Print Output Format <0=> Plain Text <1=> XML
18 // <i> Set the test results output format to plain text or XML
19 #ifndef PRINT_XML_REPORT
20 #define PRINT_XML_REPORT                0
21 #endif
22 // <h> Buffer sizes
23 // <i> Enable/disable buffer sizes (bytes)
24 // <q> 1 - 32
25 #define BUFFER_ELEM_1_32                0
26 // <q> 512
27 #define BUFFER_ELEM_512                 1
28 // <q> 1024
29 #define BUFFER_ELEM_1024                0
30 // <q> 4096
31 #define BUFFER_ELEM_4096                0
32 // <q> 32768
33 #define BUFFER_ELEM_32768               0
34 // </h>
35 // <o> Buffer size for baudrate test
36 // <i> Set the buffer sizes (bytes)
37 #define BUFFER_SIZE_BR                  512
38 // <o> Buffer pattern <0=> 0x55, 0xAA <1=> 0x12, 0x34, 0x56, 0x78
39 // <i> Set the buffer pattern
40 #define BUFFER_PATTERN_INDEX            0
41 #if    (BUFFER_PATTERN_INDEX == 0)
42 #define BUFFER_PATTERN {0x55, 0xAA}
43 #endif
44 // </h>
45
46 // <h> SPI
47 // <o> Driver_SPI# <0-255>
48 // <i> Choose the Driver_SPI# instance to be tested
49 #define DRV_SPI                         0
50 // <h> SPI bus speed
51 // <i> Set the SPI bus speed (kHz)
52 // <i> Value zero is ignored
53 // <o> SPI bus speed 1
54 #define SPI_BR_1                        400
55 // <o> SPI bus speed 2
56 #define SPI_BR_2                        1000
57 // <o> SPI bus speed 3
58 #define SPI_BR_3                        4000
59 // <o> SPI bus speed 4
60 #define SPI_BR_4                        10000
61 // <o> SPI bus speed 5
62 #define SPI_BR_5                        25000
63 // <o> SPI bus speed 6
64 #define SPI_BR_6                        50000
65 // </h>
66 // <o> Percentual trigger for bus speed test
67 // <i> Set the minimum margin between measured and expected bus speeds (%)
68 #define MIN_BUS_SPEED                   5
69 // <o> SPI data bits
70 // <i> Set the SPI data bits
71 #define SPI_DATA_BITS                   8
72 // <o> Transfer timeout
73 // <i> Set the transfer timeout (us)
74 #define SPI_TRANSFER_TIMEOUT            1000000
75 // <h> Test Cases
76 // <i> Enable/disable test cases
77 // <q> SPI_GetCapabilities
78 #define SPI_GETCAPABILITIES_EN          1
79 // <q> SPI_Initialization
80 #define SPI_INITIALIZATION_EN           1
81 // <q> SPI_PowerControl
82 #define SPI_POWERCONTROL_EN             1
83 // <q> SPI_Config_PolarityPhase
84 #define SPI_CONFIG_POLARITYPHASE_EN     1
85 // <q> SPI_Config_DataBits
86 #define SPI_CONFIG_DATABITS_EN          1
87 // <q> SPI_Config_BitOrder
88 #define SPI_CONFIG_BITORDER_EN          1
89 // <q> SPI_Config_SSMode
90 #define SPI_CONFIG_SSMODE_EN            1
91 // <q> SPI_Config_BusSpeed
92 #define SPI_CONFIG_BUSSPEED_EN          1
93 // <q> SPI_Config_CommonParams
94 #define SPI_CONFIG_COMMONPARAMS_EN      1
95 // <q> SPI_Send
96 #define SPI_SEND_EN                     1
97 // <q> SPI_Receive
98 #define SPI_RECEIVE_EN                  1
99 // <q> SPI_Loopback_CheckBusSpeed
100 #define SPI_LOOPBACK_CHECKBUSSPEED_EN   1
101 // <q> SPI_Loopback_Transfer
102 #define SPI_LOOPBACK_TRANSFER_EN        1
103 // <q> SPI_CheckInvalidInit
104 #define SPI_CHECKINVALIDINIT_EN         1
105 // </h>
106 // </h>
107
108 // <h> USART
109 // <o> Driver_USART# <0-255>
110 // <i> Choose the Driver_USART# instance to be tested
111 #define DRV_USART                       0
112 // <h> USART baudrates
113 // <i> Set the USART baudrates (bps)
114 // <i> Value zero is ignored
115 // <o> USART baudrate 1
116 #define USART_BR_1                      9600
117 // <o> USART baudrate 2
118 #define USART_BR_2                      19200
119 // <o> USART baudrate 3
120 #define USART_BR_3                      38400
121 // <o> USART baudrate 4
122 #define USART_BR_4                      57600
123 // <o> USART baudrate 5
124 #define USART_BR_5                      115200
125 // <o> USART baudrate 6
126 #define USART_BR_6                      921600
127 // </h>
128 // <o> Percentual tolerance for baudrate test
129 // <i> Set the tolerance between measured and expected baudrates (%)
130 #define TOLERANCE_BR                    5
131 // <o> USART data bits
132 // <i> Set the USART data bits
133 #define USART_DATA_BITS                 8
134 // <o> Transfer timeout
135 // <i> Set the transfer timeout (us)
136 #define USART_TRANSFER_TIMEOUT          1000000
137 // <h> Test Cases
138 // <i> Enable/disable test cases
139 // <q> USART_GetCapabilities
140 #define USART_GETCAPABILITIES_EN        1
141 // <q> USART_Initialization
142 #define USART_INITIALIZATION_EN         1
143 // <q> USART_PowerControl
144 #define USART_POWERCONTROL_EN           1
145 // <q> USART_Config_PolarityPhase
146 #define USART_CONFIG_POLARITYPHASE_EN   1
147 // <q> USART_Config_DataBits
148 #define USART_CONFIG_DATABITS_EN        1
149 // <q> USART_Config_StopBits
150 #define USART_CONFIG_STOPBITS_EN        1
151 // <q> USART_Config_Parity
152 #define USART_CONFIG_PARITY_EN          1
153 // <q> USART_Config_Baudrate
154 #define USART_CONFIG_BAUDRATE_EN        1
155 // <q> USART_Config_CommonParams
156 #define USART_CONFIG_COMMONPARAMS_EN    1
157 // <q> USART_Send
158 #define USART_SEND_EN                   1
159 // <q> USART_Loopback_CheckBaudrate
160 #define USART_LOOPBACK_CHECKBAUDRATE_EN 1
161 // <q> USART_Loopback_Transfer
162 #define USART_LOOPBACK_TRANSFER_EN      1
163 // <q> USART_CheckInvalidInit
164 #define USART_CHECKINVALIDINIT_EN       1
165 // </h>
166 // </h>
167
168 // <h> Ethernet
169 // <o> Driver_ETH_MAC# <0-255>
170 // <i> Choose the Driver_ETH_MAC# instance to be tested
171 #define DRV_ETH                         0
172 // <o> Link timeout
173 // <i> Set the Ethernet link timeout (us)
174 #define ETH_LINK_TIMEOUT                3000000
175 // <o> Transfer timeout
176 // <i> Set the transfer timeout (us)
177 #define ETH_TRANSFER_TIMEOUT 1000000
178 // <o> Time duration for PTP Control Time
179 // <i> Set time duration for Control Time tests (ms)
180 #define ETH_PTP_TIME_REF                1000
181 // <o> Tolerance for PTP Control Time
182 // <i> Set tolerance for Control Time tests (ns)
183 #define ETH_PTP_TOLERANCE               0
184 // <h> Test Cases
185 // <i> Enable/disable test cases
186 // <q> ETH_MAC_GetCapabilities
187 #define ETH_MAC_GETCAPABILITIES_EN      1
188 // <q> ETH_MAC_Initialization
189 #define ETH_MAC_INITIALIZATION_EN       1
190 // <q> ETH_MAC_PowerControl
191 #define ETH_MAC_POWERCONTROL_EN         1
192 // <q> ETH_MAC_SetBusSpeed
193 #define ETH_MAC_SETBUSSPEED_EN          1
194 // <q> ETH_MAC_Config_Mode
195 #define ETH_MAC_CONFIG_MODE_EN          1
196 // <q> ETH_MAC_Config_CommonParams
197 #define ETH_MAC_CONFIG_COMMONPARAMS_EN  1
198 // <q> ETH_MAC_PTP_ControlTimer
199 #define ETH_MAC_PTP_CONTROLTIMER_EN     1
200 // <q> ETH_PHY_Initialization
201 #define ETH_PHY_INITIALIZATION_EN       1
202 // <q> ETH_PHY_PowerControl
203 #define ETH_PHY_POWERCONTROL_EN         1
204 // <q> ETH_PHY_Config
205 #define ETH_PHY_CONFIG_EN               1
206 // <q> ETH_Loopback_Transfer
207 #define ETH_LOOPBACK_TRANSFER_EN        1
208 // <q> ETH_Loopback_PTP
209 #define ETH_LOOPBACK_PTP_EN             1
210 // <q> ETH_PHY_CheckInvalidInit
211 #define ETH_PHY_CHECKINVALIDINIT_EN     1
212 // <q> ETH_MAC_CheckInvalidInit
213 #define ETH_MAC_CHECKINVALIDINIT_EN     1
214 // </h>
215 // </h>
216
217 // <h> I2C
218 // <o> Driver_I2C# <0-255>
219 // <i> Choose the Driver_I2C# instance to be tested
220 #define DRV_I2C                         1
221 // <h> Test Cases
222 // <i> Enable/disable test cases
223 // <q> I2C_GetCapabilities
224 #define I2C_GETCAPABILITIES_EN          1
225 // <q> I2C_Initialization
226 #define I2C_INITIALIZATION_EN           1
227 // <q> I2C_PowerControl
228 #define I2C_POWERCONTROL_EN             1
229 // <q> I2C_SetBusSpeed
230 #define I2C_SETBUSSPEED_EN              1
231 // <q> I2C_SetOwnAddress
232 #define I2C_SETOWNADDRESS_EN            1
233 // <q> I2C_BusClear
234 #define I2C_BUSCLEAR_EN                 1
235 // <q> I2C_AbortTransfer
236 #define I2C_ABORTTRANSFER_EN            1
237 // <q> I2C_CheckInvalidInit
238 #define I2C_CHECKINVALIDINIT_EN         1
239 // </h>
240 // </h>
241
242 // <h> MCI
243 // <o> Driver_MCI# <0-255>
244 // <i> Choose the Driver_MCI# instance to be tested
245 #define DRV_MCI                         0
246 // <h> Test Cases
247 // <i> Enable/disable test cases
248 // <q> MCI_GetCapabilities
249 #define MCI_GETCAPABILITIES_EN          1
250 // <q> MCI_Initialization
251 #define MCI_INITIALIZATION_EN           1
252 // <q> MCI_PowerControl
253 #define MCI_POWERCONTROL_EN             1
254 // <q> MCI_SetBusSpeedMode
255 #define MCI_SETBUSSPEEDMODE_EN          1
256 // <q> MCI_Config_DataWidth
257 #define MCI_CONFIG_DATAWIDTH_EN         1
258 // <q> MCI_Config_CmdLineMode
259 #define MCI_CONFIG_CMDLINEMODE_EN       1
260 // <q> MCI_Config_DriverStrength
261 #define MCI_CONFIG_DRIVERSTRENGTH_EN    1
262 // <q> MCI_CheckInvalidInit
263 #define MCI_CHECKINVALIDINIT_EN         1
264 // </h>
265 // </h>
266
267 // <h> USB Device
268 // <o> Driver_USBD# <0-255>
269 // <i> Choose the Driver_USBD# instance to be tested
270 #define DRV_USBD                        0
271 // <h> Test Cases
272 // <i> Enable/disable test cases
273 // <q> USBD_GetCapabilities
274 #define USBD_GETCAPABILITIES_EN         1
275 // <q> USBD_Initialization
276 #define USBD_INITIALIZATION_EN          1
277 // <q> USBD_PowerControl
278 #define USBD_POWERCONTROL_EN            1
279 // <q> USBD_CheckInvalidInit
280 #define USBD_CHECKINVALIDINIT_EN        1
281 // </h>
282 // </h>
283
284 // <h> USB Host
285 // <o> Driver_USBH# <0-255>
286 // <i> Choose the Driver_USBH# instance to be tested
287 #define DRV_USBH                        0
288 // <h> Test Cases
289 // <i> Enable/disable test cases
290 // <q> USBH_GetCapabilities
291 #define USBH_GETCAPABILITIES_EN         1
292 // <q> USBH_Initialization
293 #define USBH_INITIALIZATION_EN          1
294 // <q> USBH_PowerControl
295 #define USBH_POWERCONTROL_EN            1
296 // <q> USBH_CheckInvalidInit
297 #define USBH_CHECKINVALIDINIT_EN        1
298 // </h>
299 // </h>
300
301 // <h> CAN
302 // <o> Driver_CAN# <0-255>
303 // <i> Choose the Driver_USBD# instance to be tested
304 #define DRV_CAN                         0
305 // <h> CAN bitrates
306 // <i> Set the CAN bitrates (kbit/s)
307 // <i> Value zero is ignored
308 // <o> CAN bitrate 1
309 #define CAN_BR_1                        125
310 // <o> CAN bitrate 2
311 #define CAN_BR_2                        250
312 // <o> CAN bitrate 3
313 #define CAN_BR_3                        500
314 // <o> CAN bitrate 4
315 #define CAN_BR_4                        1000
316 // <o> CAN bitrate 5
317 #define CAN_BR_5                        0
318 // <o> CAN bitrate 6
319 #define CAN_BR_6                        0
320 // </h>
321 // <o> Ratio data/arbitration bitrate
322 // <i> Set the ratio between data and arbitration bitrate for CAN FD
323 #define CAN_DATA_ARB_RATIO              8
324 // <o> Percentual trigger for bitrate test
325 // <i> Set the minimum margin between measured and expected birates (%)
326 #define MIN_BITRATE                     10
327 // <o> Transfer timeout
328 // <i> Set the transfer timeout (us)
329 #define CAN_TRANSFER_TIMEOUT            1000000
330 // <h> Test Cases
331 // <i> Enable/disable test cases
332 // <q> CAN_GetCapabilities
333 #define CAN_GETCAPABILITIES_EN          1
334 // <q> CAN_Initialization
335 #define CAN_INITIALIZATION_EN           1
336 // <q> CAN_PowerControl
337 #define CAN_POWERCONTROL_EN             1
338 // <q> CAN_Loopback_CheckBitrate
339 #define CAN_LOOPBACK_CHECK_BR_EN        1
340 // <q> CAN_Loopback_CheckBitrateFD
341 #define CAN_LOOPBACK_CHECK_BR_FD_EN     1
342 // <q> CAN_Loopback_Transfer
343 #define CAN_LOOPBACK_TRANSFER_EN        1
344 // <q> CAN_Loopback_TransferFD
345 #define CAN_LOOPBACK_TRANSFER_FD_EN     1
346 // <q> CAN_CheckInvalidInit
347 #define CAN_CHECKINVALIDINIT_EN         1
348 // </h>
349 // </h>
350
351 // <h> WiFi
352 // <o> Driver_WiFi# <0-255>
353 // <i> Choose the Driver_WiFi# instance to be tested
354 #define DRV_WIFI                        0
355 // <h> Configuration
356 // <i> Configuration of valid settings for driver functionality testing
357 // <h> Station
358 // <i> Settings relevant for Station
359 // <s.32> SSID
360 // <i> SSID of network that Station will connect to
361 #define WIFI_STA_SSID                   "SSID"
362 // <s.32> Password
363 // <i> Password of network that Station will connect to
364 #define WIFI_STA_PASS                   "Password"
365 // <o> Security Type
366 // <0=> Open <1=> WEP <2=> WPA <3=> WPA2
367 // <i> Security type of network that Station will connect to
368 #define WIFI_STA_SECURITY               3
369 // <o> Channel
370 // <i> WiFi channel of network that Station will connect to
371 // <i> Value 0 means Autodetect
372 #define WIFI_STA_CH                     0
373 // <s.8> WPS PIN
374 // <i> WiFi Protected Setup Personal Identification Number
375 #define WIFI_STA_WPS_PIN                "12345678"
376 // </h>
377 // <h> Access Point
378 // <i> Settings relevant for Access Point
379 // <s.32> SSID
380 // <i> SSID of created network
381 #define WIFI_AP_SSID                    "CMSIS_DV"
382 // <s.32> Password
383 // <i> Password of created network
384 #define WIFI_AP_PASS                    "Password"
385 // <o> Security Type
386 // <0=> Open <1=> WEP <2=> WPA <3=> WPA2
387 // <i> Security type of created network
388 #define WIFI_AP_SECURITY                3
389 // <o> Channel
390 // <i> WiFi channel of created network
391 // <i> Value 0 means Autoselect
392 #define WIFI_AP_CH                      0
393 // <s.8> WPS PIN
394 // <i> WiFi Protected Setup Personal Identification Number
395 #define WIFI_AP_WPS_PIN                 "12345678"
396 // </h>
397 // <h> Socket
398 // <s.15>SockServer IP
399 // <i>Static IPv4 Address of SockServer (used for testing socket operation) in text representation
400 #define WIFI_SOCKET_SERVER_IP           "192.168.1.10"
401 // </h>
402 // </h>
403 // <h> Test Cases
404 // <i> Enable/disable test cases
405 // <e> Control
406 // <i> Control functions tests
407 #define WIFI_CONTROL_EN                 1
408 // <q> WIFI_GetVersion
409 #define WIFI_GETVERSION_EN              1
410 // <q> WIFI_GetCapabilities
411 #define WIFI_GETCAPABILITIES_EN         1
412 // <q> WIFI_Initialization/Uninitilization
413 #define WIFI_INIT_UNINIT_EN             1
414 // <q> WIFI_PowerControl
415 #define WIFI_POWERCONTROL_EN            1
416 // <q> WIFI_GetModuleInfo
417 #define WIFI_GETMODULEINFO_EN           1
418 // </e>
419 // <e> Management
420 // <i> Management functions tests
421 #define WIFI_MANAGEMENT_EN              1
422 // <e> WIFI_SetOption/GetOption
423 #define WIFI_SETGETOPTION_EN            1
424 // <o0> ARM_WIFI_BSSID <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
425 // <i> Default test value is set in defines WIFI_BSSID_STA/WIFI_BSSID_AP (1E-30-6C-A2-45-5E)
426 #define WIFI_SETGETOPTION_BSSID_EN      3
427 // <o0> ARM_WIFI_TX_POWER <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
428 // <i> Default test value is set in defines WIFI_TX_POWER_STA/WIFI_TX_POWER_AP (16)
429 #define WIFI_SETGETOPTION_TX_POWER_EN   3
430 // <o0> ARM_WIFI_LP_TIMER <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
431 // <i> Default test value is set in defines WIFI_LP_TIMER_STA (10)
432 #define WIFI_SETGETOPTION_LP_TIMER_EN   3
433 // <o0> ARM_WIFI_DTIM <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
434 // <i> Default test value is set in defines WIFI_DTIM_STA/WIFI_DTIM_AP (3)
435 #define WIFI_SETGETOPTION_DTIM_EN       3
436 // <o0> ARM_WIFI_BEACON <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
437 // <i> Default test value is set in defines WIFI_BEACON_AP (2000)
438 #define WIFI_SETGETOPTION_BEACON_EN     3
439 // <o0> ARM_WIFI_MAC <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
440 // <i> Default test value is set in defines WIFI_MAC_STA/WIFI_MAC_AP (1E-30-6C-A2-45-5E)
441 #define WIFI_SETGETOPTION_MAC_EN        3
442 // <o0> ARM_WIFI_IP <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
443 // <i> Default test value is set in defines WIFI_IP_STA/WIFI_IP_AP (192.168.0.100)
444 #define WIFI_SETGETOPTION_IP_EN         3
445 // <o0> ARM_WIFI_IP_SUBNET_MASK <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
446 // <i> Default test value is set in defines WIFI_IP_SUBNET_MASK_STA/WIFI_IP_SUBNET_MASK_AP (255.255.255.0)
447 #define WIFI_SETGETOPTION_IP_SUBNET_MASK_EN 3
448 // <o0> ARM_WIFI_IP_GATEWAY <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
449 // <i> Default test value is set in defines WIFI_IP_GATEWAY_STA/WIFI_IP_GATEWAY_AP (192.168.0.254)
450 #define WIFI_SETGETOPTION_IP_GATEWAY_EN 3
451 // <o0> ARM_WIFI_IP_DNS1 <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
452 // <i> Default test value is set in defines WIFI_IP_DNS1_STA/WIFI_IP_DNS1_AP (8.8.8.8)
453 #define WIFI_SETGETOPTION_IP_DNS1_EN    3
454 // <o0> ARM_WIFI_IP_DNS2 <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
455 // <i> Default test value is set in defines WIFI_IP_DNS2_STA/WIFI_IP_DNS2_AP (8.8.4.4)
456 #define WIFI_SETGETOPTION_IP_DNS2_EN    3
457 // <o0> ARM_WIFI_IP_DHCP <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
458 #define WIFI_SETGETOPTION_IP_DHCP_EN    3
459 // <o0> ARM_WIFI_IP_DHCP_POOL_BEGIN <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
460 // <i> Default test value is set in defines WIFI_IP_DHCP_POOL_BEGIN_AP (192.168.0.100)
461 #define WIFI_SETGETOPTION_IP_DHCP_POOL_BEGIN_EN 3
462 // <o0> ARM_WIFI_IP_DHCP_POOL_END <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
463 // <i> Default test value is set in defines WIFI_IP_DHCP_POOL_END_AP (192.168.0.200)
464 #define WIFI_SETGETOPTION_IP_DHCP_POOL_END_EN   3
465 // <o0> ARM_WIFI_IP_DHCP_LEASE_TIME <0=>Disabled <1=>Set <2=>Get <3=>Set/Get
466 // <i> Default test value is set in defines WIFI_IP_DHCP_LEASE_TIME_AP (3600)
467 #define WIFI_SETGETOPTION_IP_DHCP_LEASE_TIME_EN 3
468 // </e>
469 // <q> WIFI_Scan
470 #define WIFI_SCAN_EN                    1
471 #define WIFI_SCAN_MAX_NUM               10
472 // <q> WIFI_Activate/Deactivate
473 #define WIFI_ACT_DEACT_EN               1
474 // <q> WIFI_IsConnected
475 #define WIFI_ISCONNECTED_EN             1
476 // <q> WIFI_GetNetInfo
477 #define WIFI_GETNETINFO_EN              1
478 // </e>
479 // <e> Management (requires user interaction)
480 // <i> Management functions tests that require user interaction
481 #define WIFI_MANAGEMENT_USER_EN         0
482 // <q> WIFI_Activate_AP
483 // <i> For this test please connect a WiFi client (for example mobile phone) to AP
484 // <i> and check if connection has succeeded
485 #define WIFI_ACT_AP                     1
486 #define WIFI_AP_CLIENT_CON_TIMEOUT      120000
487 // <e> WPS
488 #define WIFI_WPS_USER_EN                1
489 // <q> WIFI_Activate_Station_WPS_PBC
490 // <i> For this test please start WPS Push-button method on WiFi AP (router) manually
491 #define WIFI_ACT_STA_WPS_PBC            1
492 // <q> WIFI_Activate_Station_WPS_PIN
493 // <i> For this test please configure WPS PIN method on WiFi AP (router) manually
494 #define WIFI_ACT_STA_WPS_PIN            1
495 // <q> WIFI_Activate_AP_WPS_PBC
496 // <i> For this test please connect a WiFi client (for example mobile phone) to AP with WPS Push-button method
497 // <i> and check if connection has succeeded
498 #define WIFI_ACT_AP_WPS_PBC             1
499 // <q> WIFI_Activate_AP_WPS_PIN
500 // <i> For this test please connect a WiFi client (for example mobile phone) to AP with WPS PIN method
501 // <i> and check if connection has succeeded
502 #define WIFI_ACT_AP_WPS_PIN             1
503 // </e>
504 // </e>
505 // <e> Socket API (requires SockServer)
506 // <i> Socket functions tests
507 #define WIFI_SOCKET_EN                  1
508 #define WIFI_SOCKET_MAX_NUM             4
509 // <q> WIFI_SocketCreate
510 #define WIFI_SOCKETCREATE_EN            1
511 // <q> WIFI_SocketBind
512 #define WIFI_SOCKETBIND_EN              1
513 // <q> WIFI_SocketListen
514 #define WIFI_SOCKETLISTEN_EN            1
515 // <q> WIFI_SocketAccept
516 #define WIFI_SOCKETACCEPT_EN            1
517 // <q> WIFI_SocketConnect
518 #define WIFI_SOCKETCONNECT_EN           1
519 // <q> WIFI_SocketRecv
520 #define WIFI_SOCKETRECV_EN              1
521 // <q> WIFI_SocketRecvFrom
522 #define WIFI_SOCKETRECVFROM_EN          1
523 // <q> WIFI_SocketSend
524 #define WIFI_SOCKETSEND_EN              1
525 // <q> WIFI_SocketSendTo
526 #define WIFI_SOCKETSENDTO_EN            1
527 // <q> WIFI_SocketGetSockName
528 #define WIFI_SOCKETGETSOCKNAME_EN       1
529 // <q> WIFI_SocketGetPeerName
530 #define WIFI_SOCKETGETPEERNAME_EN       1
531 // <q> WIFI_SocketGetOpt
532 #define WIFI_SOCKETGETOPT_EN            1
533 // <q> WIFI_SocketSetOpt
534 #define WIFI_SOCKETSETOPT_EN            1
535 // <q> WIFI_SocketClose
536 #define WIFI_SOCKETCLOSE_EN             1
537 // <q> WIFI_SocketGetHostByName
538 #define WIFI_SOCKETGETHOSTBYNAME_EN     1
539 // <q> WIFI_Ping
540 #define WIFI_PING_EN                    1
541 // </e>
542 // <e> Socket Operation (requires SockServer)
543 // <i> Socket operation tests
544 #define WIFI_SOCKET_OP_EN               1
545 // <q> WIFI_Transfer_Fixed
546 // <i> Sends and receives in fixed size blocks
547 #define WIFI_TRANSFER_FIXED_EN          1
548 // <q> WIFI_Transfer_Incremental
549 // <i> Sends and receives in ascending size blocks
550 #define WIFI_TRANSFER_INCREMENTAL_EN    1
551 // <q> WIFI_Send_Fragmented
552 // <i> Sends several smaller blocks, receives one large block
553 #define WIFI_SEND_FRAGMENTED_EN         1
554 // <q> WIFI_Recv_Fragmented
555 // <i> Sends one large block, receives several smaller blocks
556 #define WIFI_RECV_FRAGMENTED_EN         1
557 // <q> WIFI_Test_Speed
558 // <i> Transmits data and measures transfer speed
559 #define WIFI_TEST_SPEED_EN              1
560 // <q> WIFI_Concurrent_Socket
561 // <i> Transmits data in two sockets simultaneously
562 #define WIFI_CONCURRENT_SOCKET_EN       1
563 // <q> WIFI_Downstream_Rate
564 // <i> Measures the downstream bandwidth
565 #define WIFI_DOWNSTREAM_RATE_EN         1
566 // <q> WIFI_Upstream_Rate
567 // <i> Measures the upstream bandwidth
568 #define WIFI_UPSTREAM_RATE_EN           1
569 // </e>
570 // </h>
571 // </h>
572
573 // Configuration settings of test values for Set/GetOptions
574 // BSSID
575 #define WIFI_BSSID_STA                  "1E-30-6C-A2-45-5E"
576 #define WIFI_BSSID_AP                   "1E-30-6C-A2-45-5E"
577 // Radio transmitting power in dBm
578 #define WIFI_TX_POWER_STA               16
579 #define WIFI_TX_POWER_AP                16
580 // Low-power deep-sleep time value in seconds
581 #define WIFI_LP_TIMER_STA               10
582 // Delivery Traffic Indication Message interval value in beacons
583 #define WIFI_DTIM_STA                   3
584 #define WIFI_DTIM_AP                    3
585 // Beacon interval value in milliseconds
586 #define WIFI_BEACON_AP                  2000
587 // Ethernet MAC Address in text representation
588 #define WIFI_MAC_STA                    "1E-30-6C-A2-45-5E"
589 #define WIFI_MAC_AP                     "1E-30-6C-A2-45-5E"
590 // Static IPv4 Address in text representation
591 #define WIFI_IP_STA                     "192.168.0.100"
592 #define WIFI_IP_AP                      "192.168.0.100"
593 // Local Subnet mask in text representation
594 #define WIFI_IP_SUBNET_MASK_STA         "255.255.255.0"
595 #define WIFI_IP_SUBNET_MASK_AP          "255.255.255.0"
596 // IP Address of Default Gateway in text representation
597 #define WIFI_IP_GATEWAY_STA             "192.168.0.254"
598 #define WIFI_IP_GATEWAY_AP              "192.168.0.254"
599 // IP Address of Primary DNS Server in text representation
600 #define WIFI_IP_DNS1_STA                "8.8.8.8"
601 #define WIFI_IP_DNS1_AP                 "8.8.8.8"
602 // IP Address of Secondary DNS Server in text representation
603 #define WIFI_IP_DNS2_STA                "8.8.4.4"
604 #define WIFI_IP_DNS2_AP                 "8.8.4.4"
605 // IP Address of DHCP server pool beginning in text representation
606 #define WIFI_IP_DHCP_POOL_BEGIN_AP      "192.168.0.100"
607 // IP Address of DHCP server pool end in text representation
608 #define WIFI_IP_DHCP_POOL_END_AP        "192.168.0.200"
609 // DHCP lease time value in seconds
610 #define WIFI_IP_DHCP_LEASE_TIME_AP      3600
611
612 // Timeout configuration that can be used for adjusting tests to limitations of the WiFi Module (in ms)
613 #define WIFI_SOCKET_TIMEOUT             2000
614 #define WIFI_SOCKET_TIMEOUT_LONG        35000
615
616 //------------------------------------------------------------------------------
617
618 // Device specific local loopback settings
619 #define SPI_LOCAL_LOOPBACK()
620 #define USART_LOCAL_LOOPBACK()
621
622 #endif /* __DV_CONFIG_H */