RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches

Overview

This is the DS3231 driver structure.

Variables

const rtc_api_t DS3231_DRIVER
 DS3231 Driver Instance. Point your generic RTC pointer to this structure to use the DS3231 hardware.

Variable Documentation

◆ DS3231_DRIVER

const rtc_api_t DS3231_DRIVER
extern

#include <DS3231.h>

DS3231 Driver Instance. Point your generic RTC pointer to this structure to use the DS3231 hardware.

Note
Implements the following hooks from rtc_api_t:
  • getTime: Reads current time registers.
  • setTime: Writes current time registers.
  • setTimeSystem: Configures the 12/24H mode bit.
See also
rtc_api_t
// Example Usage:
* // The application code doesn't know this is a DS3231
my_rtc->getTime(&t);
const rtc_api_t DS3231_DRIVER
DS3231 Driver Instance. Point your generic RTC pointer to this structure to use the DS3231 hardware.
RTC API structure.
Definition rtc.h:137
rtc_status_t(* getTime)(rtc_instance_t *rtc)
Get time function pointer.
Definition rtc.h:140