#include <RTC.h>

Public Member Functions

 RtcClass ()
 Instantiate real time clock object. More...
 
uint64_t getRtcNanoseconds ()
 Get nanoseconds from RTC. More...
 
uint32_t getRtcSeconds ()
 Get seconds from RTC. More...
 
bool setRtcNanoseconds (uint64_t nanoseconds)
 Set RTC nanoseconds. More...
 
bool setRtcSeconds (uint32_t seconds)
 Set RTC. More...
 

Constructor & Destructor Documentation

◆ RtcClass()

RtcClass::RtcClass ( )

Instantiate real time clock object.

Member Function Documentation

◆ getRtcNanoseconds()

uint64_t RtcClass::getRtcNanoseconds ( )

Get nanoseconds from RTC.

Return values
uint64_tQuantity of nanoseconds since last RTC reset or set

◆ getRtcSeconds()

uint32_t RtcClass::getRtcSeconds ( )

Get seconds from RTC.

Return values
uint32_tQuantity of seconds since epoch
Note
Also updates RTC NVRAM

◆ setRtcNanoseconds()

bool RtcClass::setRtcNanoseconds ( uint64_t  nanoseconds)

Set RTC nanoseconds.

Parameters
nanosecondsValue to set RTC to
Return values
boolTrue on success

◆ setRtcSeconds()

bool RtcClass::setRtcSeconds ( uint32_t  seconds)

Set RTC.

Parameters
secondsQuantity of seconds since epoch
Return values
boolTrue on success
Note
Updates RTC NVRAM

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