Skip to main content

Module rtc

Module rtc 

Source

Structs§

RtcDateTime
RTC date/time structure
RtcDriver
RTC driver state

Functions§

get_datetime
Get current date/time
get_timestamp
Get Unix timestamp
init
Initialize RTC
is_available
Check if RTC is available
rtc_interrupt_handler
RTC interrupt handler (IRQ8)
set_periodic_frequency
Set periodic interrupt frequency
set_periodic_interrupt
Enable/disable periodic interrupt
uptime_secs
Get seconds since boot (approximate, based on RTC updates)