libctr9
Nintendo 3DS ARM9 library
ctr_rtc.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2016 Gabriel Marcano
3  *
4  * Refer to the COPYING.txt file at the top of the project directory. If that is
5  * missing, this file is licensed under the GPL version 2.0 or later.
6  *
7  ******************************************************************************/
8 
11 #ifndef CTR_RTC_H_
12 #define CTR_RTC_H_
13 
14 #include <stdint.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 typedef struct
21 {
22  uint8_t seconds, minutes, hours, pad_, day, month, year;
23 } ctr_rtc_data;
24 
30 void ctr_rtc_init(void);
31 
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif//CTR_RTC_H_
47 
void ctr_rtc_init(void)
Initializes the data used for RTC access.
ctr_rtc_data ctr_rtc_gettime(void)
Returns the data read from the RTC.
Definition: ctr_rtc.h:20