W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 62

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
Declare & Initialize Local Variables
u_char * data_buf = TX_BUF
SOCK_ESTABLISHED?
void loopback_tcpc(u_char ch)
uint8 getSn_SR(SOCKET s)
uint16 getSn_RX_RSR(SOCKET
s)
u_char
u_char
u_char flag)
u_char connect(SOCKET s,
u_char * addr, u_int port)
u_int send(SOCKET s,
const u_char * buf, u_int len)
u_int recv(SOCKET s,
u_char * buf, u_int len)
void disconnect(SOCKET s);
u_int get_system_any_port(void)
SOCK_CLOSE_WAIT?
Select Socket Status
SOCK_CLOSED?
loopback_tcpc()
getSn_SR()
Function Name
protocol,
N
N
socket(SOCKET
<Table 3-24: Reference Functions in loopback_tcpc()>
© Copyright 2007 WIZnet Co., Inc. All rights reserved.
u_int
Y
Y
Y
socket(ch,SOCK_STREAM,any port,flag)
port,
len = getSn_RX_RSR()
s,
NBconnect(ch,destip,destport)
Select Recieved Size
<Fig 3.15: loopback_tcpc()>
Wait a connetion with a client
Loopback TCP Client Program
Get the socket status
size of data transmittable, and received
data
Related socket can be created as
TCP/UDP/IP
Attempts to
server with related socket
Sends the data to related socket that is
in connection
Receives the data to related socket that
is in connection
Get any port number.
Close the related socket
Create a TCP Socket
Close Socket
close(ch)
RETURN
Description
connect to the specific
len > 0
N
Y
app/loopback.c
iinChip/w5100.c
iinChip/w5100.c
iinChip/socket.c
iinChip/socket.c
iinChip/socket.c
iinChip/socket.c
iinChip/socket.c
evb/config.c
Send the Received Data
send(ch,data_buf,len)
recv(ch,data_buf,len)
Receive the Data
Location
52

Related parts for W5100E01-AVR