ConOpSys V2970  P004.07
ANVILEX control operating system
Macros | Functions
sntp.h File Reference
#include "lwip/apps/sntp_opts.h"
#include "lwip/ip_addr.h"
Include dependency graph for sntp.h:

Go to the source code of this file.

Macros

#define SNTP_OPMODE_POLL   0
 
#define SNTP_OPMODE_LISTENONLY   1
 
#define sntp_servermode_dhcp(x)
 

Functions

void sntp_setoperatingmode (u8_t operating_mode)
 
u8_t sntp_getoperatingmode (void)
 
void sntp_init (void)
 
void sntp_stop (void)
 
u8_t sntp_enabled (void)
 
void sntp_setserver (u8_t idx, const ip_addr_t *addr)
 
const ip_addr_tsntp_getserver (u8_t idx)
 

Detailed Description

SNTP client API

Macro Definition Documentation

◆ SNTP_OPMODE_LISTENONLY

#define SNTP_OPMODE_LISTENONLY   1

◆ SNTP_OPMODE_POLL

#define SNTP_OPMODE_POLL   0

◆ sntp_servermode_dhcp

#define sntp_servermode_dhcp (   x)

Function Documentation

◆ sntp_enabled()

u8_t sntp_enabled ( void  )

◆ sntp_getoperatingmode()

u8_t sntp_getoperatingmode ( void  )

◆ sntp_getserver()

const ip_addr_t* sntp_getserver ( u8_t  idx)

◆ sntp_init()

void sntp_init ( void  )

◆ sntp_setoperatingmode()

void sntp_setoperatingmode ( u8_t  operating_mode)

◆ sntp_setserver()

void sntp_setserver ( u8_t  idx,
const ip_addr_t addr 
)

◆ sntp_stop()

void sntp_stop ( void  )