Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
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:132
rtc_status_t(* getTime)(rtc_instance_t *rtc)
Get time function pointer *‍/.
Definition rtc.h:133