Skip to content

Add function calls for reading alarm date time from registers #13

@boeckhoff

Description

@boeckhoff

I would like to propose adding functions that return the current alarm1/alarm2 time by reading from the DS323x registers.

The reason is that the Ds323x supports adding a battery to keep running and preserve internal state during a power cut, but some MCUs interfacing with the Ds323x might also need to restore the IC state after a power cut, since they might not be powered by the battery and loose their volatile memory.

To get started I have a few questions:

  • Does this sound reasonable ?
  • Do you see any issues I should be aware of ?

I know this is a small contribution but if it sounds reasonable I would like to make a small change and open a PR.
Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions