Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
udp/ntp/ntpclient.h
- Committer:
- andrewboyson
- Date:
- 2019-05-15
- Revision:
- 146:0fc66d610fd6
- Parent:
- 139:1f3641abc07f
- Child:
- 160:6a1d1d368f80
File content as of revision 146:0fc66d610fd6:
#include <stdbool.h>
#include <stdint.h>
#include "ntp.h"
extern bool NtpClientTrace;
extern void NtpClientInit(void);
extern void NtpClientTimeUpdateSuccessful(void);
extern int32_t NtpClientReplyOffsetMs;
extern int32_t NtpClientReplyMaxDelayMs;
extern void NtpClientReply(void (*traceback)(void), char* pPacket);
extern uint64_t NtpClientQueryTime;
extern char NtpClientQueryServerName[];
extern int NtpClientQueryInitialInterval;
extern int NtpClientQueryNormalInterval;
extern int NtpClientQueryRetryInterval;
extern bool NtpClientQuerySendRequestsViaIp4;
extern uint32_t NtpClientQueryServerIp4;
extern char NtpClientQueryServerIp6[];
extern void NtpClientQueryStartInterval(int type);
extern int NtpClientQueryPoll(int type, char* pPacket, int* pSize);
enum {
NTP_QUERY_INTERVAL_INITIAL,
NTP_QUERY_INTERVAL_NORMAL,
NTP_QUERY_INTERVAL_RETRY
};