network abstraction, time handling
This commit is contained in:
@ -1,9 +1,15 @@
|
||||
#ifndef _NETWORK_ABSTRACTION_LAYER_H_
|
||||
#define _NETWORK_ABSTRACTION_LAYER_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
uint64_t seconds;
|
||||
bool valid;
|
||||
} t_seconds;
|
||||
|
||||
void networkInit();
|
||||
|
||||
t_seconds* networkGetSeconds();
|
||||
|
||||
#endif /* _NETWORK_ABSTRACTION_LAYER_H_ */
|
||||
|
@ -5,18 +5,12 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
typedef struct {
|
||||
uint64_t seconds;
|
||||
uint32_t missedUpdates;
|
||||
bool valid;
|
||||
} t_seconds;
|
||||
|
||||
int wizInit();
|
||||
bool isNetworkAvailable();
|
||||
uint8_t* wizGetIPAddress();
|
||||
bool wizDnsQuery(char *name, uint8_t *ip);
|
||||
|
||||
t_seconds* wizGetSeconds();
|
||||
uint64_t wizSntpQuery();
|
||||
|
||||
|
||||
#endif // _WIZHELPER_H_
|
||||
|
Reference in New Issue
Block a user