ntp.h 648 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 20152016-TI2.3A6, 2016.
  3. *
  4. * Project : 20152016-TI2.3a6-Internet Radio
  5. * Module : NTP
  6. * File name : ntp.h
  7. * Revision : 1.1
  8. * Creation Date : 2016
  9. *
  10. * Description : This module syncs the time from a network time
  11. * server using the NTP-protocol.
  12. */
  13. #ifndef _Ntp_H
  14. #define _Ntp_H
  15. #include "typedefs.h"
  16. extern bool NtpIsSyncing(void);
  17. extern void NtpInit(void);
  18. extern void NtpSync(void);
  19. extern bool NtpTimeIsValid(void);
  20. void NtpCheckValidTime(void);
  21. void NtpWriteTimeToEeprom(tm);
  22. bool NtpCompareTime(tm, tm);
  23. #endif /* _Ntp_H */