Xyris  0.5
rtc.hpp
Go to the documentation of this file.
1 /**
2  * @file rtc.cpp
3  * @author Keeton Feavel ([email protected])
4  * @author Michel (JMallone) Gomes ([email protected])
5  * @brief
6  * @version 0.4
7  * @date 2021-07-25
8  *
9  * @copyright Copyright the Xyris Contributors (c) 2021
10  *
11  * References:
12  * https://github.com/limine-bootloader/limine/blob/trunk/stage23/lib/time.c
13  * https://en.wikipedia.org/wiki/Julian_day
14  */
15 #pragma once
16 #include <stdint.h>
17 
18 namespace RTC {
19 
20 /**
21  * @brief Initializes the Real Time Clock driver
22  * for the x86_64 architecture.
23  *
24  */
25 void init();
26 
27 /**
28  * @brief Get a epoch number from rtc.
29  * @return uint64_t A epoch number
30  */
31 uint64_t getEpoch();
32 
33 } // !namespace RTC
RTC
Definition: rtc.cpp:18
RTC::init
void init()
Initializes the Real Time Clock driver for the x86_64 architecture.
Definition: rtc.cpp:43
RTC::getEpoch
uint64_t getEpoch()
Get a epoch number from rtc.
Definition: rtc.cpp:193