Compute the local time offset from an SNTP packet.
Files
sntp-c.h/sntp-c.c
Prototype
Code Block | |
---|---|
|
...
|
...
SNTP_ |
...
TS SNTPc_GetRemoteTime |
...
(SNTP_PKT *ppkt, SNTPc_ERR *p_err); |
Arguments
ppkt
...
Pointer to the SNTP message packet to compute.
p_err
Pointer to variable that will receive the return error code from this function.
Returned Values
Corrected NTP time stamp.
Required Configuration
Notes / Warnings
...
None.
Example Usage
none.