Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
Returns:
WORD of available bytes at RX Buffer
To Read them UDPRead( BYTE sock, char str2rd[],
int lstr);
This function reads the RX buffer and puts them at str2rd from the specific socket number
Parameters:
sock: BYTE of Socket number
str2rd: the char array to copy the Rx buffer content
lstr: the length of string to read
Returns:
INT of bytes read from RX Buffer
To Read without clear data on RX buffer UDPpRead( BYTE sock, char str2rd[],
int lstr, int start);
This function reads lstr bytes from the RX buffer without clear it
Parameters:
sock: BYTE of Socket number
str2rd: the char array to copy the Rx buffer content
lstr: the length of string to read
start: the start point of reading
Returns:
INT of bytes read from RX Buffer
To Check a overflow in RX buffer UDPRxOver(BYTE sock);
This function checks if a overflow was reached in UDP RX buffer, and clears the flag
Parameters:
sock: BYTE of Socket number
Returns:
0 = no overflow, 1 = overflow reached
To Flush the RX buffer UDPRxFlush(BYTE sock);
This function clears the RX buffer
Parameters:
sock: BYTE of Socket number
To Write a packet UDPWrite(BYTE sock, BYTE *str2wr, int lstr);
This function write the str2wr char array to the specified socket number
Parameters:
sock: BYTE of Socket number
str2wr: the char array to write to TX buffer
lstr: the length of string to write
Returns:
WORD of bytes wrote to TX Buffer
46