libdragon
Data Structures | Functions

Real-Time Clock Subsystem. More...

Go to the source code of this file.

Data Structures

struct  rtc_time_t
 Structure for storing RTC time data. More...
 

Functions

bool rtc_init (void)
 High-level convenience helper to initialize the RTC subsystem. More...
 
void rtc_close (void)
 Close the RTC Subsystem, disabling system hooks. More...
 
bool rtc_is_writable (void)
 Determine whether the RTC supports writing the time. More...
 
bool rtc_get (rtc_time_t *rtc_time)
 Read the current date/time from the real-time clock. More...
 
bool rtc_set (rtc_time_t *write_time)
 High-level convenience helper to set the RTC date/time. More...
 
void rtc_normalize_time (rtc_time_t *rtc_time)
 Calculate sane values for arbitrary time inputs. More...
 

Detailed Description

Real-Time Clock Subsystem.