Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Compute the local time from an SNTP packet.

...

sntp-c.h/sntp-c.c

Prototype

 

Code Block
language

...

micrium
SNTP_TS  SNTPc_GetRemoteTime (SNTP_PKT        *ppkt,
						      SNTPc_ERR       *p_err);

 

Arguments

ppkt                         Pointer  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

Code Block
languagecpp
 

Module Configuration.

Notes / Warnings

...