ntp.h 419 B

12345678910111213141516171819202122
  1. //
  2. // Created by janco on 25-2-16.
  3. //
  4. #ifndef _Ntp_H
  5. #define _Ntp_H
  6. #include "typedefs.h"
  7. #include <time.h>
  8. extern bool NtpIsSyncing(void);
  9. extern void NtpInit(void);
  10. extern int NtpSync(void);
  11. extern void setTimeZone(int timezone);
  12. extern bool NtpTimeIsValid(void);
  13. void NtpCheckValidTime(void);
  14. void NtpWriteTimeToEeprom(tm time_struct);
  15. void setTimeZone(int timezone);
  16. int getTimeZone(void);
  17. #endif /* _Ntp_H */