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@59:e0e556c8bd46, 2017-12-14 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Dec 14 20:55:40 2017 +0000
- Revision:
- 59:e0e556c8bd46
- Child:
- 60:1d8c7a1e7483
Added buffer length to help avoid over runs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 59:e0e556c8bd46 | 1 | extern int NicInit(void); |
andrewboyson | 59:e0e556c8bd46 | 2 | extern void NicFree(void); |
andrewboyson | 59:e0e556c8bd46 | 3 | |
andrewboyson | 59:e0e556c8bd46 | 4 | extern void NicLinkAddress(char *mac); // get the ethernet address |
andrewboyson | 59:e0e556c8bd46 | 5 | extern int NicLinkIsUp(void); // see if the link is up |
andrewboyson | 59:e0e556c8bd46 | 6 | extern void NicLinkSpeedDuplex(int speed, int duplex); // force link settings |
andrewboyson | 59:e0e556c8bd46 | 7 | |
andrewboyson | 59:e0e556c8bd46 | 8 | extern char* NicGetReceivedPacketOrNull(int* pSize); |
andrewboyson | 59:e0e556c8bd46 | 9 | extern void NicReleaseReceivedPacket(); |
andrewboyson | 59:e0e556c8bd46 | 10 | extern char* NicGetTransmitPacketOrNull(int* pSize); |
andrewboyson | 59:e0e556c8bd46 | 11 | extern void NicSendTransmitPacket(int size); |