Method | Description | |
---|---|---|
DS1307 ( ) : System | ||
DS1307 ( Microsoft.SPOT.Hardware.I2CDevice device ) : System | ||
Dispose ( ) : void |
Releases clock resources
|
|
GetRAM ( ) : byte[] |
Reads the clock's user RAM registers as a block.
|
|
ReadRegister ( byte address, int length = 1 ) : byte[] |
Reads an arbitrary RTC or RAM register
|
|
SetRAM ( byte buffer ) : void |
Writes to the clock's user RAM registers as a block
|
|
SetSquareWave ( SQWFreq Freq, SQWDisabledOutputControl OutCtrl = SQWDisabledOutputControl.Zero ) : void |
Enables / Disables the square wave generation function of the clock. Requires a pull-up resistor on the clock's SQW pin.
|
|
WriteRegister ( byte address, byte data ) : void |
Writes an arbitrary RTC or RAM register
|
|
this ( byte address ) : byte |
Method | Description | |
---|---|---|
EncodeDate ( System.DateTime value, bool clockHalt, bool hourMode ) : byte[] | ||
ParseDate ( byte clockData ) : System.DateTime |
public DS1307 ( Microsoft.SPOT.Hardware.I2CDevice device ) : System | ||
device | Microsoft.SPOT.Hardware.I2CDevice | |
return | System |
public ReadRegister ( byte address, int length = 1 ) : byte[] | ||
address | byte | Register address between 0x00 and 0x3f |
length | int | The number of bytes to read |
return | byte[] |
public SetRAM ( byte buffer ) : void | ||
buffer | byte | A byte buffer of size DS1307_RAM_SIZE |
return | void |
public SetSquareWave ( SQWFreq Freq, SQWDisabledOutputControl OutCtrl = SQWDisabledOutputControl.Zero ) : void | ||
Freq | SQWFreq | Desired frequency or disabled |
OutCtrl | SQWDisabledOutputControl | Logical level of output pin when the frequency is disabled (zero by default) |
return | void |
public WriteRegister ( byte address, byte data ) : void | ||
address | byte | Register address between 0x00 and 0x3f |
data | byte | |
return | void |