UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
rtc.h
1 
11 #ifndef __RTC_H__
12 #define __RTC_H__
13 
14 #include <stdint.h>
15 #include <stdbool.h>
16 
25 void RTC_init(void);
26 
35 void RTC_getTime(uint32_t *time);
36 
45 void RTC_getTime_ms(uint64_t *time_ms);
46 
55 void RTC_setTime(uint32_t *time);
56 
66 bool RTC_timerElapsed_ms(uint64_t start_time_ms, uint64_t period_ms);
67 
68 #endif /* __RTC_H__ */
void RTC_getTime(uint32_t *time)
Definition: rtc.c:20
void RTC_setTime(uint32_t *time)
Definition: rtc.c:46
bool RTC_timerElapsed_ms(uint64_t start_time_ms, uint64_t period_ms)
Definition: rtc.c:53
void RTC_getTime_ms(uint64_t *time_ms)
Definition: rtc.c:33
void RTC_init(void)
Definition: rtc.c:15