RF24Ethernet - TCP/IP over RF24Network v1.6.17
TMRh20 - Pushing the practical limits of RF24 modules
Loading...
Searching...
No Matches
RF24Ethernet.h File Reference
#include <Arduino.h>
#include "uip-conf.h"
#include "utility/uip.h"
#include "utility/uiptimer.h"
#include "utility/uip_arp.h"
#include "RF24Ethernet_config.h"
#include <RF24.h>
#include <RF24Network.h>
#include <RF24Mesh.h>
#include "ethernet_comp.h"
#include "IPAddress.h"
#include "RF24Client.h"
#include "RF24Server.h"

Go to the source code of this file.

Classes

class  RF24EthernetClass
 

Macros

#define UIPETHERNET_FREEPACKET   1
 
#define UIPETHERNET_SENDPACKET   2
 
#define TAP
 
#define BUF   ((struct uip_eth_hdr*)&uip_buf[0])
 
#define uip_seteth_addr(eaddr)
 
#define uip_ip_addr(addr, ip)   memcpy(addr, &ip[0], 4)
 
#define ip_addr_uip(a)   IPAddress(a[0] & 0xFF, a[0] >> 8, a[1] & 0xFF, a[1] >> 8)
 
#define uip_seteth_addr(eaddr)
 

Typedefs

typedef RF24EthernetClass RF52EthernetClass
 

Variables

RF24EthernetClass RF24Ethernet
 

Detailed Description

Class declaration for RF24Ethernet

Definition in file RF24Ethernet.h.

Macro Definition Documentation

◆ UIPETHERNET_FREEPACKET

#define UIPETHERNET_FREEPACKET   1

Definition at line 60 of file RF24Ethernet.h.

◆ UIPETHERNET_SENDPACKET

#define UIPETHERNET_SENDPACKET   2

Definition at line 61 of file RF24Ethernet.h.

◆ TAP

#define TAP

Definition at line 64 of file RF24Ethernet.h.

◆ BUF

#define BUF   ((struct uip_eth_hdr*)&uip_buf[0])

Definition at line 67 of file RF24Ethernet.h.

◆ uip_seteth_addr [1/2]

#define uip_seteth_addr ( eaddr)
Value:
do { \
uip_ethaddr.addr[0] = eaddr[0]; \
uip_ethaddr.addr[1] = eaddr[1]; \
uip_ethaddr.addr[2] = eaddr[2]; \
uip_ethaddr.addr[3] = eaddr[3]; \
uip_ethaddr.addr[4] = eaddr[4]; \
uip_ethaddr.addr[5] = eaddr[5]; \
} while (0)

Definition at line 71 of file RF24Ethernet.h.

Referenced by RF24EthernetClass::setMac().

◆ uip_ip_addr

#define uip_ip_addr ( addr,
ip )   memcpy(addr, &ip[0], 4)

Definition at line 80 of file RF24Ethernet.h.

Referenced by RF24Client::connect(), and RF24EthernetClass::set_gateway().

◆ ip_addr_uip

#define ip_addr_uip ( a)    IPAddress(a[0] & 0xFF, a[0] >> 8, a[1] & 0xFF, a[1] >> 8)

◆ uip_seteth_addr [2/2]

#define uip_seteth_addr ( eaddr)
Value:
do { \
uip_ethaddr.addr[0] = eaddr[0]; \
uip_ethaddr.addr[1] = eaddr[1]; \
uip_ethaddr.addr[2] = eaddr[2]; \
uip_ethaddr.addr[3] = eaddr[3]; \
uip_ethaddr.addr[4] = eaddr[4]; \
uip_ethaddr.addr[5] = eaddr[5]; \
} while (0)

Definition at line 71 of file RF24Ethernet.h.

Typedef Documentation

◆ RF52EthernetClass

Definition at line 231 of file RF24Ethernet.h.

Variable Documentation

◆ RF24Ethernet