C# 클래스 Porrey.Uwp.IoT.Devices.Ds1307

Implements a custom I2C interface for the DS1307 DTC.
상속: Porrey.Uwp.IoT.Sensors.I2c, IDs1307
파일 보기 프로젝트 열기: porrey/iot 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
SetControlRegister ( GpioPinValue outBit, bool sqweBit, Frequency frequency ) : System.Threading.Tasks.Task

메소드 상세

Ds1307() 공개 메소드

public Ds1307 ( ) : System
리턴 System

Ds1307() 공개 메소드

public Ds1307 ( I2cBusSpeed busSpeed ) : System
busSpeed I2cBusSpeed
리턴 System

GetAsync() 공개 메소드

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

Halt() 공개 메소드

public Halt ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

ReadMemory() 공개 메소드

public ReadMemory ( ) : Task
리턴 Task

Resume() 공개 메소드

public Resume ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

SetAsync() 공개 메소드

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.
리턴 System.Threading.Tasks.Task

SetControlRegister() 보호된 메소드

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

WriteMemory() 공개 메소드

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