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
Diff: udp/ntp/ntp.h
- Revision:
- 112:f8694d0b8858
- Parent:
- 104:871e65deaa5e
- Child:
- 113:904b40231907
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/udp/ntp/ntp.h Mon Jan 21 16:58:28 2019 +0000 @@ -0,0 +1,16 @@ +extern bool NtpTrace; + +extern bool NtpServerEnable; +extern uint64_t (*NtpFunctionGetClockRef) (); +extern int (*NtpFunctionGetClockStratum) (); +extern char* (*NtpFunctionGetClockIdent) (); +extern int (*NtpFunctionGetClockLi) (); +extern int (*NtpFunctionGetClockPrecision)(); + +extern void NtpHdrWriteRequest(void* pPacket, int* pSize); + +extern int NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); +extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize); + + +#define NTP_PORT 123 \ No newline at end of file