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.

public class RtcController : RtcBase

Constructors​

RtcController()​

public RtcController()

The chip's RTC

Properties​

BackupMemorySize​

public uint BackupMemorySize { get; }

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

Returns uint

IsValid​

public bool IsValid { get; }

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)​

public void Calibrate(int pulse)

Not implemented yet

Dispose(bool disposing)​

protected override void Dispose(bool disposing)

ReadBackupMemory(byte[] destinationData)​

public int ReadBackupMemory(byte[] destinationData)

Not implemented yet

Returns int

ReadBackupMemory(byte[] destinationData, uint sourceOffset)​

public int ReadBackupMemory(byte[] destinationData, uint sourceOffset)

Not implemented yet

Returns int

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

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

Not implemented yet

Returns int

ReadTime()​

protected override DateTime ReadTime()

Returns DateTime

SetChargeMode(BatteryChargeMode chargeMode)​

public void SetChargeMode(BatteryChargeMode chargeMode)

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

SetTime(DateTime time)​

protected override void SetTime(DateTime time)

WriteBackupMemory(byte[] sourceData)​

public void WriteBackupMemory(byte[] sourceData)

Not implemented yet

WriteBackupMemory(byte[] sourceData, uint destinationOffset)​

public void WriteBackupMemory(byte[] sourceData, uint destinationOffset)

Not implemented yet

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

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

Not implemented yet