29 #if FNET_CFG_SNTP || defined(__DOXYGEN__) 118 #if defined(__cplusplus) 185 #if defined(__cplusplus) fnet_uint32_t seconds
Seconds (host endian).
fnet_uint32_t month
Month (1-12).
Initialization parameters for the fnet_sntp_init() function.
Coordinated Universal Time (UTC) type.
fnet_uint32_t day
Day of the month (1-31) .
fnet_uint32_t millisecond
Milliseconds (0-999).
fnet_return_t
General return codes, used by most of API functions.
fnet_uint32_t year
Year (1968-2104).
void(* fnet_sntp_callback_resolved_t)(const fnet_sntp_timestamp_t *timestamp, void *cookie)
Prototype of the SNTP-client callback function that is called when the SNTP client has completed the ...
void fnet_sntp_release(void)
Aborts the time resolving and releases the SNTP-client service.
SNTP timestamp (RFC4330) is represented as a 64-bit unsigned fixed-point number, in seconds relative ...
void fnet_sntp_timestamp2utc(const fnet_sntp_timestamp_t *timestamp, fnet_sntp_utc_t *utc)
Converts the SNTP timestamp to the Coordinated Universal Time (UTC).
fnet_uint32_t minute
Minutes (0-59).
fnet_uint32_t hour
Hour (0-23).
fnet_sntp_callback_resolved_t callback
Pointer to the callback function defined by fnet_sntp_callback_resolved_t. It is called when the SNTP...
fnet_return_t fnet_sntp_init(fnet_sntp_params_t *params)
Initializes the SNTP client service and starts the time resolving.
void * cookie
Optional application-specific parameter. It's passed to the callback function as input parameter...
fnet_uint32_t second
Seconds (0-59).
Socket address structure.
fnet_uint32_t seconds_fraction
Seconds Fraction (host endian).