W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 63

no-image

W5100E01-AVR

Manufacturer Part Number
W5100E01-AVR
Description
Development Boards & Kits - AVR W5100 EVAL BOARD BASED ON AVR
Manufacturer
WIZnet
Datasheet

Specifications of W5100E01-AVR

Rohs
yes
Product
Development Boards
Tool Is For Evaluation Of
ATMEGA128
Core
AVR8
Interface Type
LAN, RS-232
Operating Supply Voltage
5 V
Data Bus Width
8 bit
3.2.6.3.
Loopback UDP Program is a program that uses unicast datagram communication of UDP protocol. It
operates same as Loopback TCP Server/Client program does. UDP communication includes unicast
datagram communication and broadcast datagram communication, and basically supports 1-to-many
communication that is used for many destinations with one channel.
Loopback UDP program uses loopback_udp() and <Fig 3-16> shows processing procedure of
loopback_udp().
u_char * data_buf = TX_BUF
u_long destip = 0
u_int destport = 0
Declare & Initialize Local Variables
Select Socket Status
SOCK_CLOSED
loopback_udp()
SOCK_UDP?
SOCK_INIT?
getSn_SR()
Loopback UDP
?
N
N
Y
Y
Y
© Copyright 2007 WIZnet Co., Inc. All rights reserved.
socket(ch,SOCK_DGRAM,port,flag)
len = getSn_RX_RSR()
Select Recieved Size
Create a TCP Socket
RETURN
<Fig 3.16: loopback_udp()>
len > 0
N
Y
recvfrom(ch,data_buf,len,&destip,&destport)
sendto(ch,data_buf,len,destip,destport)
Send the Received Data
Receive the Data
53

Related parts for W5100E01-AVR