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 PCF8523 driver structure.

Variables

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

Variable Documentation

◆ PCF8523_DRIVER

const rtc_api_t PCF8523_DRIVER
extern

#include <PCF8523.h>

PCF8523 Driver Instance. Point your generic RTC pointer to this structure to use the PCF8523 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 PCF8523
my_rtc->getTime(&t);
const rtc_api_t PCF8523_DRIVER
PCF8523 Driver Instance. Point your generic RTC pointer to this structure to use the PCF8523 hardware...
Definition PCF8523.c:55
RTC API structure.
Definition rtc.h:132
rtc_status_t(* getTime)(rtc_instance_t *rtc)
Get time function pointer *‍/.
Definition rtc.h:133

Definition at line 55 of file PCF8523.c.