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 nic.h Source File

nic.h

00001 extern int  NicInit(void);
00002 
00003 extern void NicLinkAddress(char *mac);                 // get the ethernet address
00004 extern int  NicLinkIsUp(void);                         // see if the link is up
00005 extern void NicLinkSpeedDuplex(int speed, int duplex); // force link settings
00006 
00007 extern char* NicGetReceivedPacketOrNull(int* pSize);
00008 extern void  NicReleaseReceivedPacket(void);
00009 extern char* NicGetTransmitPacketOrNull(int* pSize);
00010 extern void  NicSendTransmitPacket(int size);