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
PCF8523.h File Reference
#include "rtc/rtc.h"

Go to the source code of this file.

Overview

PCF8523 Driver API definitions. This file provides data structures and APIs for controlling the PCF8523 RTC device on the EfxSapphireSoC platform.

Author
Efinix Inc
Note
This is a device-specific driver implementation for the PCF8523 RTC.

Definition in file PCF8523.h.

Macros

#define MUX_ADDR   0x71<<1
 I2C Address for Mux device.
#define RTC_PCF8523_ADDR   0x68<<1
 I2C Address for PCF8523 RTC device.

Functions

rtc_status_t PCF8523_getCSR (rtc_instance_t *rtc)
 Get control/status register from PCF8523 RTC.
rtc_status_t PCF8523_getTime (rtc_instance_t *rtc)
 Get time from PCF8523 RTC.
rtc_status_t PCF8523_setTime (rtc_instance_t *rtc)
 Set time on PCF8523 RTC.
rtc_status_t PCF8523_setTimeSystem (rtc_instance_t *rtc, u8 use_12hour_mode)
 Set time system (12-hour or 24-hour) on PCF8523 RTC.

Variables

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