lwIP
2.1.0
Lightweight IP stack
|
#include "lwip/apps/sntp.h"
#include "lwip/opt.h"
#include "lwip/timeouts.h"
#include "lwip/udp.h"
#include "lwip/dns.h"
#include "lwip/ip_addr.h"
#include "lwip/pbuf.h"
#include "lwip/dhcp.h"
#include <string.h>
#include <time.h>
#include "arch/bpstruct.h"
#include "arch/epstruct.h"
Data Structures | |
struct | sntp_time |
struct | sntp_timestamps |
struct | sntp_msg |
struct | sntp_server |
Macros | |
#define | SNTP_FRAC_TO_US(f) ((u32_t)(f) / 4295) |
Functions | |
void | sntp_init (void) |
void | sntp_stop (void) |
u8_t | sntp_enabled (void) |
void | sntp_setoperatingmode (u8_t operating_mode) |
u8_t | sntp_getoperatingmode (void) |
u8_t | sntp_getreachability (u8_t idx) |
void | sntp_setserver (u8_t idx, const ip_addr_t *server) |
const ip_addr_t * | sntp_getserver (u8_t idx) |
SNTP client module
#define SNTP_FRAC_TO_US | ( | f | ) | ((u32_t)(f) / 4295) |
Convert NTP timestamp fraction to microseconds.