62 #ifndef __APPS_INCLUDE_NETUTILS_NTPCLIENT_H 63 #define __APPS_INCLUDE_NETUTILS_NTPCLIENT_H 1 69 #include <tinyara/config.h> 70 #include <netinet/in.h> 77 #define MAX_NTP_SERVER_NUM 5 78 #define MIN_NTP_POLL_INTERVAL_SECS 10 79 #define MAX_NTP_POLL_INTERVAL_SECS (24 * 60 * 60) 128 #define EXTERN extern "C" 131 #define EXTERN extern 161 #ifndef CONFIG_DISABLE_SIGNALS 183 int ntpc_get_link_status(
void);
ntpc_link_status_e
This enumeration describes the state of the NTP Client's Link.
int ntpc_start(struct ntpc_server_conn_s *server_list, uint32_t num_of_servers, uint32_t interval_secs, void *link_error_cb)
ntpc_start() starts the NTP client daemon.
int ntpc_stop(void)
ntpc_stop() stops the NTP client daemon.
Structure of NTP server information.
int ntpc_get_status(void)
ntpc_get_status() gets NTP client daemon's status value.
ntpc_daemon_e
This enumeration describes the state of the NTP daemon.
Structure of NTP server's connection information.