oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Data Structures | Functions
net_sntp.h File Reference
#include "ove/types.h"
#include "ove_config.h"
#include <stdint.h>
Include dependency graph for net_sntp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ove_sntp_config_t
 SNTP client configuration. More...
 

Functions

int ove_sntp_sync (const ove_sntp_config_t *cfg)
 Synchronize with an NTP server.
 
int ove_sntp_get_offset_us (int64_t *offset_us)
 Get the UTC offset computed by the last successful sync.
 
int ove_sntp_get_utc (uint32_t *utc_s)
 Get the current UTC time in seconds since Unix epoch.