A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers eth.h Source File

eth.h

00001 #include <stdint.h>
00002 
00003 extern uint16_t EthProtocol;
00004 extern char*    EthMacRemote;
00005 
00006 extern void EthProtocolLog(uint16_t prototype);
00007 extern int  EthHandlePacket       (char* pPacketRx, int sizeRx, char* pPacketTx, int* pSizeTx);
00008 extern int  EthPollForPacketToSend(char* pPacket, int* pSize);
00009 
00010 #define ETHERNET  1
00011 
00012 #define ETH_NONE 0
00013 #define ETH_IPV4 0x0800
00014 #define ETH_ARP  0x0806
00015 #define ETH_IPV6 0x86DD
00016