156#if !defined(RF24_TAP)
161#if defined NRF52_RADIO_LIBRARY
162 #if !defined(RF24_TAP)
183 void begin(IP_ADDR myIP, IP_ADDR subnet);
189 void begin(IPAddress ip);
190 void begin(IPAddress ip, IPAddress dns);
191 void begin(IPAddress ip, IPAddress dns, IPAddress gateway);
192 void begin(IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);
202 void listen(uint16_t port);
211 void setMac(uint16_t address);
237#if defined NRF52_RADIO_LIBRARY
243#if !defined NRF52_RADIO_LIBRARY
245 #if !defined(RF24_TAP)
250 #if !defined(RF24_TAP)
286 static bool isUnicast(
const uint8_t frame);
293 static constexpr uint16_t ETHERNET_MTU = 1500;
294 static constexpr uint8_t MacAddr[6] = {0, 1, 2, 3, 4};
295 static bool isConnected;
297 static pbuf* readRXQueue(EthQueue*
RXQueue);
299 static void EthRX_Handler(
const uint8_t* ethFrame,
const uint16_t lenEthFrame);
300 alignas(4)
static uint8_t networkBuffer[MAX_PAYLOAD_SIZE];
305 IPAddress _dnsServerAddress;
307 static IPAddress _dnsServerAddress;
310 void configure(IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);
316 static void network_send();
318 uint8_t RF24_Channel;
321 struct timer periodic_timer;
323 struct timer arp_timer;
330 int sendFrame(
const uint8_t* data,
size_t len);
331 uint8_t outputBuffer[MAX_PAYLOAD_SIZE];
332 IPAddress ethLocalIP;