22#include "cmsis_compiler.h"
29typedef __PACKED_STRUCT
35typedef __PACKED_STRUCT
89 int32_t i32DiffNanoseconds;
94 if (i32DiffNanoseconds < 0)
Definition: timestamp.h:36
int32_t i32Year
Definition: timestamp.h:37
int32_t i32Month
Definition: timestamp.h:38
int32_t i32Second
Definition: timestamp.h:42
int32_t i32Minute
Definition: timestamp.h:41
int32_t i32Hour
Definition: timestamp.h:40
int32_t i32Day
Definition: timestamp.h:39
Definition of a timestamp type.
Definition: timestamp.h:30
uint32_t ui32NanoSeconds
Nanoseconds of the timestamp.
Definition: timestamp.h:32
uint32_t ui32Seconds
Seconds of the timestamp.
Definition: timestamp.h:31
Type_DateTime UtcToDateTime(uint32_t UnixTime)
Converts seconds that have elapsed since January 1, 2020 to structured UTC.
Definition: timestamp.c:57
Type_Timestamp getTimestamp(void)
uint32_t DateTimeToUtc(Type_DateTime tDateTime)
Converts structured UTC to seconds that have elapsed since January 1, 2020.
Definition: timestamp.c:33
static __INLINE bool TimestampOlder(Type_Timestamp tTimestamp1, Type_Timestamp tTimestamp2)
This functions compares two Type_Timestamp.
Definition: timestamp.h:66
static __INLINE Type_Timestamp TimestampDifference(Type_Timestamp tTimestamp1, Type_Timestamp tTimestamp2)
This functions subtract two Type_Timestamp.
Definition: timestamp.h:86