libyggdrasil  v1.0.0
rtc.h File Reference

Driver to use the RV-3028-C7 RTC. More...

#include <c/yggdrasil/types.h>
#include <time.h>
Include dependency graph for rtc.h:

Go to the source code of this file.

Functions

C_LINKAGE bool yggdrasil_RealTimeClock_Init (void)
 Initialization function. More...
 
C_LINKAGE time_t yggdrasil_RealTimeClock_GetTime (void)
 Get the time saved in the RTC. More...
 
C_LINKAGE void yggdrasil_RealTimeClock_SetTime (time_t time)
 Set the time in the RTC. More...
 

Detailed Description

Driver to use the RV-3028-C7 RTC.

Author
Fabian Weber, Nikolaij Saegesser

Function Documentation

◆ yggdrasil_RealTimeClock_GetTime()

C_LINKAGE time_t yggdrasil_RealTimeClock_GetTime ( void  )

Get the time saved in the RTC.

Returns
Time saved in the RTC

◆ yggdrasil_RealTimeClock_Init()

C_LINKAGE bool yggdrasil_RealTimeClock_Init ( void  )

Initialization function.

Returns
Success

◆ yggdrasil_RealTimeClock_SetTime()

C_LINKAGE void yggdrasil_RealTimeClock_SetTime ( time_t  time)

Set the time in the RTC.

Parameters
timeTime to save in the RTC