bool setSeconds(uint8_t value); - Sets the seconds register to value .
bool setMinutes(uint8_t value); - Sets the minutes register to value .
bool setHours(uint8_t value); - Sets the hours register to value .
bool setDate(uint8_t value); - Sets the date register to value .
bool setMonth(uint8_t value); - Sets the month register to value .
bool setYear(uint16_t value); - Sets the year register to value .
bool setWeekday(uint8_t value); - Sets the weekday register to value .
bool setToCompilerTime(); - Sets the RTC to the time from the last build and uses it as current time.
bool setCalibrationOffset(float ppm); - Loads the calibrated PPM offset to the RV8803_OFFSET register.
float getCalibrationOffset(); - Returns the calibration offset value stored in the RV8803_OFFSET register.
Reading from the RTC
bool updateTime(); - Move the time registers (hours, mins, secs, etc.) from the RV-8803 into the _time array that lives on the microcontroller.
Needs to be called before printing time or date.
uint8_t getHundredths(); - Returns _time value from the hundredths register.
uint8_t getSeconds(); - Returns _time value from the seconds register.
uint8_t getMinutes(); - Returns _time value from the minutes register.
uint8_t getHours(); - Returns the _time value from the hours register.
uint8_t getDate(); - Returns the _time value from the date register.
uint8_t getWeekday(); - Returns the _time value from the weekday register.
uint8_t getMonth(); - Returns the _time value from the month register.
uint16_t getYear(); - Returns the _time value from the year register.
uint8_t getHundredthsCapture(); - Returns the captured value from the hundredths register (Time Stamp).
uint8_t getSecondsCapture(); - Returns the captured value from the seconds register (Time Stamp).
Alarm & Interrupt Functionality
Since the RV-8803 has three types of alarms/interrupts, this list is quite extensive so we've split it up into the individual alarm and interrupt functionalities.
External Event Interrupt
bool setEVICalibration(bool eviCalibration); - Enables or disables the the External Event Interrupt (EVI) button and pin.
bool setEVIDebounceTime(uint8_t debounceTime); - Sets the debounce time for the EVI pin and button. Can be set to None, 256 Hz, 64 Hz or 8
Hz.
bool setEVIEdgeDetection(bool edge); - Sets the EVI to fire on either the rising or falling edge of the signal.
bool setEVIEventCapture(bool capture); - Enables or disables the EVI Event Capture function.
uint8_t getEVIDebounceTime(); - Returns the value set for the EVI Debounce time.
bool getEVICalibration(); - Returns whether or not the EVI functionality is enabled or disabled.
bool getEVIEdgeDetection(); - Returns whether the EVI function is set to rising or falling edge.