zephyr/subsys/net/lib/sntp
Jasper Smit 6003927ac2 net: sntp: Add option for SNTP uncertainty
SNTP response is not analyzed for uncertainty, and no uncertainty is given
to the `struct sntp_time` returned. Fix it with a Kconfig option that adds
optional SNTP uncertainty and timestamp fields in SNTP time struct, and
calculates these when parsing the response.
Adds two helper functions to convert Q16.16/Q32.32 in seconds to `int64_t`
in microseconds to facilitate this.
Also changes combined `lvm` field in `struct sntp_pkt` to bit-fields
`li`, `vn`, and `mode`.

Signed-off-by: Jasper Smit <git@jrhrsmit.nl>
2023-12-08 10:25:46 +00:00
..
CMakeLists.txt net: sntp: Add convenience API for one-shot SNTP query 2019-05-10 13:44:32 +03:00
Kconfig net: sntp: Add option for SNTP uncertainty 2023-12-08 10:25:46 +00:00
sntp.c net: sntp: Add option for SNTP uncertainty 2023-12-08 10:25:46 +00:00
sntp_pkt.h net: sntp: Add option for SNTP uncertainty 2023-12-08 10:25:46 +00:00
sntp_simple.c net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00