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

link/nic.h

Committer:
andrewboyson
Date:
2018-12-05
Revision:
94:e2973a2c488e
Parent:
61:aad055f1b0d1

File content as of revision 94:e2973a2c488e:

extern int  NicInit(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(void);
extern char* NicGetTransmitPacketOrNull(int* pSize);
extern void  NicSendTransmitPacket(int size);