Méthode | Description | |
---|---|---|
DS1302 ( IRaspiGpio clockPin, IRaspiGpio dataPin, IRaspiGpio csPin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.RTC.DS1302 class with the clock, data, and chip-select pins.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.RTC.DS1302 object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.RTC.DS1302. The Dispose method leaves the CyrusBuilt.MonoPi.RTC.DS1302 in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.RTC.DS1302 so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.RTC.DS1302 was occupying. |
|
ReadClock ( ) : System.Int32[] |
Reads the clock.
|
|
ReadRAM ( |
Reads data from the specified RTC register.
|
|
ReadRTC ( |
Reads a value from an RTC register or RAM location.
|
|
WriteClock ( |
Writes to the clock.
|
|
WriteRAM ( |
Writes a value to the specified RAM address.
|
|
WriteRTC ( |
Writes a value to an RTC register or RAM location.
|
public DS1302 ( IRaspiGpio clockPin, IRaspiGpio dataPin, IRaspiGpio csPin ) : System | ||
clockPin | IRaspiGpio | /// The GPIO pin to use for the clock. /// |
dataPin | IRaspiGpio | /// The GPIO pin to use for data. /// |
csPin | IRaspiGpio | /// The GPIO pin to use for chip-select. /// |
Résultat | System |
public ReadRAM ( |
||
address | /// The RAM address to read. /// | |
Résultat |
public ReadRTC ( |
||
register | /// The register or RAM location to read. /// | |
Résultat |
public WriteClock ( |
||
data | /// The byte buffer to write to the clock. /// | |
Résultat | void |
public WriteRAM ( |
||
address | /// The RAM address to write to. /// | |
data | /// The value to write. /// | |
Résultat | void |
public WriteRTC ( |
||
register | /// The register or RAM location to write to. /// | |
data | /// The data value to write. /// | |
Résultat | void |