C# Class Porrey.Uwp.IoT.Devices.Ds1307

Implements a custom I2C interface for the DS1307 DTC.
Inheritance: Porrey.Uwp.IoT.Sensors.I2c, IDs1307
Datei anzeigen Open project: porrey/iot Class Usage Examples

Public Methods

Method Description
Ds1307 ( ) : System
Ds1307 ( I2cBusSpeed busSpeed ) : System
GetAsync ( ) : Task

Get the current Date and Time from the DS1307.

Halt ( ) : System.Threading.Tasks.Task
ReadMemory ( ) : Task
Resume ( ) : System.Threading.Tasks.Task
SetAsync ( DateTimeOffset value ) : System.Threading.Tasks.Task

Sets the Date and Time on the DS1307.

WriteMemory ( byte data ) : System.Threading.Tasks.Task

Protected Methods

Method Description
SetControlRegister ( GpioPinValue outBit, bool sqweBit, Frequency frequency ) : System.Threading.Tasks.Task

Method Details

Ds1307() public method

public Ds1307 ( ) : System
return System

Ds1307() public method

public Ds1307 ( I2cBusSpeed busSpeed ) : System
busSpeed I2cBusSpeed
return System

GetAsync() public method

Get the current Date and Time from the DS1307.
public GetAsync ( ) : Task
return Task

Halt() public method

public Halt ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ReadMemory() public method

public ReadMemory ( ) : Task
return Task

Resume() public method

public Resume ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SetAsync() public method

Sets the Date and Time on the DS1307.
public SetAsync ( DateTimeOffset value ) : System.Threading.Tasks.Task
value DateTimeOffset The date and time as a System.DateTime object /// that will be saved on the DS1307.
return System.Threading.Tasks.Task

SetControlRegister() protected method

protected SetControlRegister ( GpioPinValue outBit, bool sqweBit, Frequency frequency ) : System.Threading.Tasks.Task
outBit GpioPinValue
sqweBit bool
frequency Frequency
return System.Threading.Tasks.Task

WriteMemory() public method

public WriteMemory ( byte data ) : System.Threading.Tasks.Task
data byte
return System.Threading.Tasks.Task