ArmSys Support
ArmsysApi  0.12.18

#include <BRtc.h>

Public Member Functions

 BRtc ()
 
BError init (Bool reset=0)
 Initialise. More...
 
BError setTime (BTimeUs time)
 Sets the current datetime. More...
 
BError getTime (BTimeUs &time)
 Returns the current datetime. More...
 
BTimeUs time ()
 
void setBackupRegister (BUInt num, BUInt32 value)
 Set a backup registers vaue. More...
 
BUInt32 getBackupRegister (BUInt num)
 Get a backup registers value. More...
 

Protected Member Functions

BError enterInitialisation ()
 Enters initialisation mode. More...
 
BError waitForSync ()
 Waits for RTC sync. More...
 

Protected Attributes

BMutex olock
 Allow multiple threads to access the clock. More...
 

Constructor & Destructor Documentation

◆ BRtc()

BRtc::BRtc ( )

Member Function Documentation

◆ enterInitialisation()

BError BRtc::enterInitialisation ( )
protected

Enters initialisation mode.

◆ getBackupRegister()

BUInt32 BRtc::getBackupRegister ( BUInt  num)

Get a backup registers value.

◆ getTime()

BError BRtc::getTime ( BTimeUs time)

Returns the current datetime.

◆ init()

BError BRtc::init ( Bool  reset = 0)

Initialise.

◆ setBackupRegister()

void BRtc::setBackupRegister ( BUInt  num,
BUInt32  value 
)

Set a backup registers vaue.

◆ setTime()

BError BRtc::setTime ( BTimeUs  time)

Sets the current datetime.

◆ time()

BTimeUs BRtc::time ( )

◆ waitForSync()

BError BRtc::waitForSync ( )
protected

Waits for RTC sync.

Member Data Documentation

◆ olock

BMutex BRtc::olock
protected

Allow multiple threads to access the clock.


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