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)
273 static bool isUnicast(
const uint8_t frame);
280 static constexpr uint16_t ETHERNET_MTU = 1500;
281 static constexpr uint8_t MacAddr[6] = {0, 1, 2, 3, 4};
282 static bool isConnected;
284 static pbuf* readRXQueue(EthQueue*
RXQueue);
286 static void EthRX_Handler(
const uint8_t* ethFrame,
const uint16_t lenEthFrame);
287 alignas(4)
static uint8_t networkBuffer[MAX_PAYLOAD_SIZE];
292 IPAddress _dnsServerAddress;
294 static IPAddress _dnsServerAddress;
297 void configure(IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);
303 static void network_send();
305 uint8_t RF24_Channel;
308 struct timer periodic_timer;
310 struct timer arp_timer;
317 int sendFrame(
const uint8_t* data,
size_t len);
318 uint8_t outputBuffer[MAX_PAYLOAD_SIZE];
319 IPAddress ethLocalIP;