libyggdrasil  v1.0.0
bsp::ygg::prph::RealTimeClock Class Reference

RTC driver RV-3028-C7. More...

#include <rtc.hpp>

Public Member Functions

 RealTimeClock ()=delete
 

Static Public Member Functions

static bool init ()
 Initialization function. More...
 
static time_t getTime ()
 Get the time saved in the RTC. More...
 
static void setTime (time_t time)
 Set the time in the RTC. More...
 

Detailed Description

RTC driver RV-3028-C7.

Constructor & Destructor Documentation

◆ RealTimeClock()

bsp::ygg::prph::RealTimeClock::RealTimeClock ( )
delete

Member Function Documentation

◆ getTime()

static time_t bsp::ygg::prph::RealTimeClock::getTime ( )
inlinestatic

Get the time saved in the RTC.

Returns
Time saved in the RTC

◆ init()

static bool bsp::ygg::prph::RealTimeClock::init ( )
inlinestatic

Initialization function.

Returns
Success

◆ setTime()

static void bsp::ygg::prph::RealTimeClock::setTime ( time_t  time)
inlinestatic

Set the time in the RTC.

Parameters
timeTime to save in the RTC

The documentation for this class was generated from the following file: