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

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

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

Ds1307() public méthode

public Ds1307 ( ) : System
Résultat System

Ds1307() public méthode

public Ds1307 ( I2cBusSpeed busSpeed ) : System
busSpeed I2cBusSpeed
Résultat System

GetAsync() public méthode

Get the current Date and Time from the DS1307.
public GetAsync ( ) : Task
Résultat Task

Halt() public méthode

public Halt ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

ReadMemory() public méthode

public ReadMemory ( ) : Task
Résultat Task

Resume() public méthode

public Resume ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SetAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

SetControlRegister() protected méthode

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

WriteMemory() public méthode

public WriteMemory ( byte data ) : System.Threading.Tasks.Task
data byte
Résultat System.Threading.Tasks.Task