Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Thu Jan 10 16:09:37 2019 +0000
Revision:
51:826c58fbfaed
Parent:
49:e4424cc18bcb
Child:
57:4daf2e423b27
Modified UTC concept from leap seconds to change to epoch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 46:d3d56cb47940 1 #include <stdint.h>
andrewboyson 46:d3d56cb47940 2
andrewboyson 51:826c58fbfaed 3 extern int ClkUtcGetEpochOffset(void);
andrewboyson 51:826c58fbfaed 4 extern void ClkUtcSetEpochOffset(int value);
andrewboyson 51:826c58fbfaed 5 extern void ClkUtcAddEpochOffset(int value);
andrewboyson 47:fd2af868c10a 6
andrewboyson 51:826c58fbfaed 7 extern int ClkUtcGetNextEpochMonth1970(void); //Months since 1970
andrewboyson 51:826c58fbfaed 8 extern int64_t ClkUtcGetNextEpoch (void);
andrewboyson 51:826c58fbfaed 9 extern void ClkUtcSetNextEpochMonth1970(int value);
andrewboyson 47:fd2af868c10a 10
andrewboyson 51:826c58fbfaed 11 extern bool ClkUtcGetNextLeapEnable (void);
andrewboyson 51:826c58fbfaed 12 extern bool ClkUtcGetNextLeapForward(void);
andrewboyson 51:826c58fbfaed 13 extern void ClkUtcSetNextLeapEnable (bool value);
andrewboyson 51:826c58fbfaed 14 extern void ClkUtcSetNextLeapForward(bool value);
andrewboyson 51:826c58fbfaed 15 extern void ClkUtcTglNextLeapEnable (void);
andrewboyson 51:826c58fbfaed 16 extern void ClkUtcTglNextLeapForward(void);
andrewboyson 47:fd2af868c10a 17
andrewboyson 48:b0f38e523552 18 extern void ClkUtcInit(void);
andrewboyson 47:fd2af868c10a 19
andrewboyson 46:d3d56cb47940 20 extern int64_t ClkUtcFromTai(int64_t tai);
andrewboyson 46:d3d56cb47940 21 extern int64_t ClkUtcToTai (int64_t utc);
andrewboyson 46:d3d56cb47940 22 extern void ClkUtcCheckAdjustLeapSecondCount(int64_t tai);