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
udp/ntp.h
- Committer:
- andrewboyson
- Date:
- 2017-07-03
- Revision:
- 22:914b970356f0
- Parent:
- 20:23f2b29b48ea
- Child:
- 35:93c39d260a83
File content as of revision 22:914b970356f0:
extern uint64_t (*NtpGetClockNowFunction) (); extern bool NtpServerEnable; extern uint64_t (*NtpGetClockRefFunction) (); extern int (*NtpGetClockStratumFunction)(); extern char* (*NtpGetClockIdentFunction) (); extern uint32_t NtpServerIp4; extern bool NtpClientRequest; extern void (*NtpSetClockFunction) (uint64_t ori, uint64_t rec); extern int NtpHandlePacketReceived(int* pSize, void * pPacket); extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize); extern void NtpTick(); #define NTP_PORT 123