Class RTC

Class Documentation

class RTC

This class allows to manage system RTC.

Public Functions

inline virtual ~RTC()

Class destructor

virtual EmodRet init() = 0

Initializes class.

virtual EmodRet uninit() = 0

Uninitializes class.

virtual bool getTime(tm *rtc) = 0

Gets RTC time from system.

Parameters

rtc -- [out] struct timespec time.

virtual bool setTime(tm *rtc) = 0

Sets RTC time to system.

Parameters

rtc -- [in] struct timespec time.