RF24Ethernet - TCP/IP over RF24Network v1.6.17
TMRh20 - Pushing the practical limits of RF24 modules
Loading...
Searching...
No Matches
uip-conf.h File Reference
#include <inttypes.h>
#include "RF24Network_config.h"

Go to the source code of this file.

Macros

#define UIP_SOCKET_NUMPACKETS   1
 
#define UIP_CONF_RECEIVE_WINDOW   UIP_CONF_BUFFER_SIZE - UIP_CONF_LLH_LEN - UIP_TCPIP_HLEN
 The TCP receive window.
 
#define UIP_CONF_TCP_MSS   OUTPUT_BUFFER_SIZE
 
#define UIP_CONF_BYTE_ORDER
 CPU byte order.
 
#define UIP_CONF_LOGGING
 Logging on or off.
 
#define UIP_CONF_STATISTICS
 uIP statistics on or off
 
#define UIP_CONF_RTO   (UIP_TIMER_DIVISOR / 2)
 
#define UIP_APPCALL
 
#define UIP_UDP_APPCALL
 
User configuration options

uIP has a number of configuration options that can be overridden for each project. These are kept in a project-specific uip-conf.h file and all configuration names have the prefix UIP_CONF. Some of these options are specific to RF24Ethernet.

#define UIP_CONF_MAX_CONNECTIONS   1
 Maximum number of TCP connections.
 
#define UIP_CONF_MAX_LISTENPORTS   1
 Maximum number of listening TCP ports.
 
#define UIP_CONF_BUFFER_SIZE   MAX_PAYLOAD_SIZE - 2
 uIP buffer size.
 
#define UIP_CONNECTION_TIMEOUT   45000
 Optional: Uncomment to disable
 
#define UIP_CONF_LLH_LEN   0
 SLIP/TUN - 14 for Ethernet/TAP & 0 for TUN/SLIP.
 
#define UIP_CONF_UDP   0
 UDP support on or off (required for DNS)
 
Advanced Operation

For advanced configuration of RF24Ethernet

#define UIP_TIMER_DIVISOR   16
 Adjust the rate at which the IP stack performs periodic processing.
 
#define UIP_CONF_ACTIVE_OPEN   1
 
#define UIP_CONF_UDP_CHECKSUMS   0
 UDP checksums on or off.
 
#define UIP_CONF_EXTERNAL_BUFFER
 uIP User Output buffer size
 
#define OUTPUT_BUFFER_SIZE   UIP_CONF_BUFFER_SIZE - UIP_CONF_LLH_LEN - UIP_TCPIP_HLEN
 
#define UIP_WINDOW_REOPEN_DELAY   3550
 Optional: Used with UIP_CONNECTION_TIMEOUT
 

Typedefs

typedef uint8_t u8_t
 8 bit datatype
 
typedef uint16_t u16_t
 16 bit datatype
 
typedef unsigned short uip_stats_t
 Statistics datatype.
 
typedef void * uip_tcp_appstate_t
 
typedef void * uip_udp_appstate_t
 

Functions

void serialip_appcall (void)
 
void uipudp_appcall (void)
 

Macro Definition Documentation

◆ UIP_SOCKET_NUMPACKETS

#define UIP_SOCKET_NUMPACKETS   1

Definition at line 175 of file uip-conf.h.

◆ UIP_CONF_RECEIVE_WINDOW

#define UIP_CONF_RECEIVE_WINDOW   UIP_CONF_BUFFER_SIZE - UIP_CONF_LLH_LEN - UIP_TCPIP_HLEN

The TCP receive window.

This is should not be to set to more than UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN.

Note
Must be an odd number or the TCP/IP sequence gets out of order with payloads larger than 511 bytes I think this might be a bug or missing feature of the uip stack

Definition at line 189 of file uip-conf.h.

◆ UIP_CONF_TCP_MSS

#define UIP_CONF_TCP_MSS   OUTPUT_BUFFER_SIZE

Definition at line 192 of file uip-conf.h.

◆ UIP_CONF_BYTE_ORDER

#define UIP_CONF_BYTE_ORDER

CPU byte order.

Definition at line 199 of file uip-conf.h.

◆ UIP_CONF_LOGGING

#define UIP_CONF_LOGGING

Logging on or off.

Definition at line 207 of file uip-conf.h.

◆ UIP_CONF_STATISTICS

#define UIP_CONF_STATISTICS

uIP statistics on or off

Definition at line 214 of file uip-conf.h.

◆ UIP_CONF_RTO

#define UIP_CONF_RTO   (UIP_TIMER_DIVISOR / 2)

Definition at line 223 of file uip-conf.h.

◆ UIP_APPCALL

#define UIP_APPCALL

Definition at line 263 of file uip-conf.h.

◆ UIP_UDP_APPCALL

#define UIP_UDP_APPCALL

Definition at line 272 of file uip-conf.h.

Typedef Documentation

◆ u8_t

typedef uint8_t u8_t

8 bit datatype

This typedef defines the 8-bit type used throughout uIP.

Definition at line 236 of file uip-conf.h.

◆ u16_t

typedef uint16_t u16_t

16 bit datatype

This typedef defines the 16-bit type used throughout uIP.

Definition at line 245 of file uip-conf.h.

◆ uip_stats_t

typedef unsigned short uip_stats_t

Statistics datatype.

This typedef defines the dataype used for keeping statistics in uIP.

Definition at line 255 of file uip-conf.h.

◆ uip_tcp_appstate_t

typedef void* uip_tcp_appstate_t

Definition at line 258 of file uip-conf.h.

◆ uip_udp_appstate_t

typedef void* uip_udp_appstate_t

Definition at line 266 of file uip-conf.h.

Function Documentation

◆ serialip_appcall()

void serialip_appcall ( void )

Definition at line 178 of file RF24Client.cpp.

◆ uipudp_appcall()

void uipudp_appcall ( void )