22#include "cmsis_compiler.h"
32typedef __PACKED_STRUCT
38typedef __PACKED_STRUCT
92 int32_t i32DiffNanoseconds;
97 if (i32DiffNanoseconds < 0)
Definition: timestamp.h:39
int32_t i32Year
Definition: timestamp.h:40
int32_t i32Month
Definition: timestamp.h:41
int32_t i32Second
Definition: timestamp.h:45
int32_t i32Minute
Definition: timestamp.h:44
int32_t i32Hour
Definition: timestamp.h:43
int32_t i32Day
Definition: timestamp.h:42
Definition of a timestamp type.
Definition: timestamp.h:33
uint32_t ui32NanoSeconds
Nanoseconds of the timestamp.
Definition: timestamp.h:35
uint32_t ui32Seconds
Seconds of the timestamp.
Definition: timestamp.h:34
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:69
static __INLINE Type_Timestamp TimestampDifference(Type_Timestamp tTimestamp1, Type_Timestamp tTimestamp2)
This functions subtract two Type_Timestamp.
Definition: timestamp.h:89