Wiznet W7200-EVB User Manual page 16

Table of Contents

Advertisement

Table 6 Key Variables for network Confguration
Variable
Description
MAC[6]
MAC address
IP[4]
Local IP address
GateWay[4]
Gateway address
SubNet[4]
Sub
• Note : MAC address should be defined even if DHCP mode.
Function
Description
loopback_tcps
TCP Loopback server mode
loopback_tcpc
TCP Loopback client mode
loopback_udp
UDP
Protocol)
server mode
© Copyright 2011 WIZnet Co., Inc. All rights reserved.
Example Code (Location: main.c)
MAC[6] = {0x00, 0x08, 0xDC, 0x01, 0x02, 0x03};
IP[4] = {192, 168, 11, 4};
GateWay[4] = {192, 168, 11, 1};
SubNet[4] = {255, 255, 255, 0};
Table 7 Functions in Loopback.c
Example Code (Location: loopback.c)
- ch : socket number [0-7]
- port : source port
loopback_tcps(uint8 ch, uint16 port)
- ch : socket number [0-7]
-ChConfig.destip : Destination IP
-ChConfig.port : Destination Port
loopback_tcpc(uint8
ChConfig)
(User
Datagram
- ch : socket number [0-7]
Loopback
- port : source port
loopback_udp(uint8 ch, uint16 port)
ch,
CHConfig_TypeDef*
Ver. 1.1
16

Advertisement

Table of Contents
loading

Table of Contents