Core
Loading...
Searching...
No Matches
rtc.h
Go to the documentation of this file.
1
9#ifndef CORE_RTC_H
10#define CORE_RTC_H
11
12#include <stdbool.h>
13#include <stdint.h>
14#include <time.h>
15
21bool core_RTC_init(bool force_init);
22
31void core_RTC_get_time(struct tm *tm);
32
37void core_RTC_set_time(struct tm *tm, uint64_t sync);
38
44uint32_t core_RTC_get_usec();
45
46#endif
void core_RTC_set_time(struct tm *tm, uint64_t sync)
Set the current RTC time from a tm struct (as defined in time.h)
Definition rtc.c:57
bool core_RTC_init(bool force_init)
Initialize the RTC module.
Definition rtc.c:21
uint32_t core_RTC_get_usec()
Get the microsecond value associated with the most recent core_RTC_get_time() call.
Definition rtc.c:80
void core_RTC_get_time(struct tm *tm)
Get the current RTC time as a tm struct (as defined in time.h)
Definition rtc.c:40