Skip to main content

RtcController Class

Package: GHIElectronics.Endpoint.Devices.Rtc
Namespace: GHIElectronics.Endpoint.Devices.Rtc

The board's real-time clock, for .NET IoT's RtcBase (Iot.Device.Rtc). It counts UTC: at boot, the system time is set from it. RtcController.IsValid and RtcController.SetChargeMode are the same as TinyCLR's.

class RtcController(RtcBase): ...

Constructors​

RtcController()​

def __init__(self):

The chip's RTC

Properties​

BackupMemorySize​

BackupMemorySize: int # @property

Not implemented yet: the size of the backup memory in bytes

Returns uint

IsValid​

IsValid: bool # @property

Whether the RTC has been set since it last lost power. Without power it starts again at 2000-01-01.

Returns bool

Methods​

Calibrate(int pulse)​

def Calibrate(self, pulse: int) -> None:

Not implemented yet

Dispose(bool disposing)​

def Dispose(self, disposing: bool) -> None:

ReadBackupMemory(byte[] destinationData)​

def ReadBackupMemory(self, destinationData: list[int]) -> int:

Not implemented yet

Returns int

ReadBackupMemory(byte[] destinationData, uint sourceOffset)​

def ReadBackupMemory(self, destinationData: list[int], sourceOffset: int) -> int:

Not implemented yet

Returns int

ReadBackupMemory(byte[] destinationData, uint destinationOffset, uint sourceOffset, int count)​

def ReadBackupMemory(self, destinationData: list[int], destinationOffset: int, sourceOffset: int, count: int) -> int:

Not implemented yet

Returns int

ReadTime()​

def ReadTime(self) -> datetime.datetime:

Returns DateTime

SetChargeMode(BatteryChargeMode chargeMode)​

def SetChargeMode(self, chargeMode: BatteryChargeMode) -> None:

Charges the backup battery or supercapacitor on VBAT, or stops charging

SetTime(DateTime time)​

def SetTime(self, time: datetime.datetime) -> None:

WriteBackupMemory(byte[] sourceData)​

def WriteBackupMemory(self, sourceData: list[int]) -> None:

Not implemented yet

WriteBackupMemory(byte[] sourceData, uint destinationOffset)​

def WriteBackupMemory(self, sourceData: list[int], destinationOffset: int) -> None:

Not implemented yet

WriteBackupMemory(byte[] sourceData, uint sourceOffset, uint destinationOffset, int count)​

def WriteBackupMemory(self, sourceData: list[int], sourceOffset: int, destinationOffset: int, count: int) -> None:

Not implemented yet