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

Revision:
59:e0e556c8bd46
Child:
60:1d8c7a1e7483
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/link/nic.h	Thu Dec 14 20:55:40 2017 +0000
@@ -0,0 +1,11 @@
+extern int  NicInit(void);
+extern void NicFree(void);
+
+extern void NicLinkAddress(char *mac);                 // get the ethernet address
+extern int  NicLinkIsUp(void);                         // see if the link is up
+extern void NicLinkSpeedDuplex(int speed, int duplex); // force link settings
+
+extern char* NicGetReceivedPacketOrNull(int* pSize);
+extern void  NicReleaseReceivedPacket();
+extern char* NicGetTransmitPacketOrNull(int* pSize);
+extern void  NicSendTransmitPacket(int size);