메소드 | 설명 | |
---|---|---|
DisableRtc ( ) : void |
Disables the Clock. When the Clock is diabled, it not ticking.
|
|
Ds1307Connection ( Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection connection ) : System |
Creates a new instance of the class using the provided I2C Connection.
|
|
EnableRtc ( ) : void |
Enables the Clock.
|
|
GetDate ( ) : System.DateTime |
Reads the Date and Time from the Ds1307 and returns it.
|
|
IsRtcEnabled ( ) : bool |
Returns true, if the Clock is enabled, otherwise false is returned.
|
|
ResetToFactoryDefaults ( ) : void |
Resets the Clock to the Factory Defaults.
|
|
SetDate ( System.DateTime date ) : void |
Writes the provided Date and Time to the Ds1307.
|
|
SystemTimeToRtc ( ) : void |
Writes the current System Date to the Clock.
|
메소드 | 설명 | |
---|---|---|
GetDate ( byte input ) : System.DateTime |
Converts the provided bytes to a DateTime.
|
|
IntToNibble ( int number ) : byte |
Converts the specified integer to a two-nibble-byte.
|
|
IsRtcEnabled ( byte seconds ) : bool |
Returns true, if the Clock is enabled, otherwise false.
|
|
NibbleToInt ( byte nibble ) : int |
Converts the specified two-nibble-byte to an integer.
|
|
ReadAll ( ) : byte[] |
Reads 7 bytes from the Clock and returns them.
|
|
ReadSeconds ( ) : byte |
Reads the Seconds-byte (first byte in the RAM) from the Clock and returns it.
|
|
SetEnabledDisableRtc ( byte seconds, bool disable ) : byte |
Disables or enables the Clock. The disable/enabled-Flag is stored in bit 7 within the seconds-byte. |
public Ds1307Connection ( Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection connection ) : System | ||
connection | Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection | I2C Connection to the Clock. |
리턴 | System |
public SetDate ( System.DateTime date ) : void | ||
date | System.DateTime | The Date that should be set. |
리턴 | void |