Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2.00.00

Compute the round trip delay from a SNTP packet in microseconds. 

...

Code Block
languagemicrium
CPU_INT32U  SNTPc_GetRoundTripDly_us (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

SNTP packet round trip delay in us.

Required Configuration

Module Configuration.

Notes / Warnings

  1. If the round trip delay is faster than the precision of the system clock, then the round trip delay is approximated to 0.

  2. Only the integer part of the round trip delay is returned.

Example Usage

none.