HALFRED  0.4.0
hal_os_caltime.h
Go to the documentation of this file.
1 
10 #ifndef HAL_OS_CALTIME_H
11 #define HAL_OS_CALTIME_H
12 
13 #include <stdint.h>
14 #include "hal_defs.h"
21 
22 
28 OSCalTime OSCALTIME_Get(void);
29 
36 HALRESULT OSCALTIME_Set(OSCalTime time);
37 
44 HALRESULT OSCALTIME_Adjust(OSCalTime timeadj);
45 
60 HALRESULT OSCALTIME_ToDateTime(OSCalTime time, uint16_t* year, uint8_t* month, uint8_t* day, uint8_t* hours, uint8_t* minutes, uint8_t* seconds, uint32_t* nanoseconds);
61 
75 HALRESULT OSCALTIME_FromDateTime(uint16_t year, uint8_t month, uint8_t day, uint8_t hours, uint8_t minutes, uint8_t seconds, uint32_t nanoseconds, OSCalTime* time);
76 
83 int64_t OSCALTIME_ToNS(OSCalTime time);
84 
91 OSCalTime OSCALTIME_FromNS(int64_t ns);
92 
93 
101 HALRESULT OSCALTIME_ToString(OSCalTime time, char* str);
102 
110 #endif /* HAL_OS_CALTIME_H */
HALRESULT
Definition: hal_defs.h:16
int64_t OSCALTIME_ToNS(OSCalTime time)
OSCalTime OSCALTIME_Get(void)
HALRESULT OSCALTIME_FromDateTime(uint16_t year, uint8_t month, uint8_t day, uint8_t hours, uint8_t minutes, uint8_t seconds, uint32_t nanoseconds, OSCalTime *time)
HALRESULT OSCALTIME_ToString(OSCalTime time, char *str)
HALRESULT OSCALTIME_Adjust(OSCalTime timeadj)
OSCalTime OSCALTIME_FromNS(int64_t ns)
Various HAL definitions.
HALRESULT OSCALTIME_ToDateTime(OSCalTime time, uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hours, uint8_t *minutes, uint8_t *seconds, uint32_t *nanoseconds)
HALRESULT OSCALTIME_Set(OSCalTime time)