Define NTP_DEBUG if you would like to turn on NTP debug statements on.
Example
Change Log
Compounds | |
struct | ntp_packet |
Typedefs | |
typedef int(* | fnNTPCallback )() |
Callback function used to notify calling program when an NTP response has been recieved. | |
Functions | |
void | ntp_init (int iTimeZoneOffset) |
Initializes the NTP protocol. | |
void | ntp_initWithCallback (int iTimeZoneOffset, fnNTPCallback fnCallback) |
Initializes the NTP protocol. | |
void | ntp_send (longword lwAddress) |
Sends an NTP request packet. |
|
Callback function used to notify calling program when an NTP response has been recieved.
|
|
Initializes the NTP protocol.
|
|
Initializes the NTP protocol.
|
|
Sends an NTP request packet. This function is non-blocking and will automatically set the time when the return packet is recieved.
|