Account
ArmsysApi 0.12.18 |
BRtc Class Reference
#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()
| protected |
Enters initialisation mode.
◆ getBackupRegister()
◆ getTime()
◆ init()
◆ setBackupRegister()
◆ setTime()
◆ time()
BTimeUs BRtc::time | ( | ) |
◆ waitForSync()
| protected |
Waits for RTC sync.
Member Data Documentation
◆ olock
| protected |
Allow multiple threads to access the clock.
The documentation for this class was generated from the following files:
Generated by
