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

user.c

Committer:
andrewboyson
Date:
2021-05-20
Revision:
200:5acbc41bf469
Parent:
195:bd5b123143ca

File content as of revision 200:5acbc41bf469:

#include <stdint.h>

uint16_t UserUdpPort1 = 0;
uint16_t UserUdpPort2 = 0;
int (*UserHandleReceivedUdpPacket)(uint16_t port, void (*traceback)(void), int dataLengthRx, char* pDataRx, int* pPataLengthTx, char* pDataTx) = 0;


uint16_t UserUdpDstPort = 0;
uint16_t UserUdpSrcPort = 0;
uint32_t UserIp4;
char     UserMac[6];

int (*UserPollForUdpPacketToSend)(int type, int* pDataLength, char* pData);