I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
PCF8523_proc.c File Reference

PCF8523 Driver procedures. More...

#include "PCF8523.h"
Include dependency graph for PCF8523_proc.c:

Functions

FctERR PCF8523_Init_Sequence (void)
 Initialization Sequence for PCF8523 peripheral.
 
FctERR PCF8523_Set_Date (const PCF8523_date date, const bool BCD)
 
FctERR PCF8523_Set_Time (const PCF8523_time time, const bool BCD)
 
FctERR PCF8523_Get_Date (PCF8523_date *date, const bool BCD)
 
FctERR PCF8523_Get_Time (PCF8523_time *time, const bool BCD)
 
FctERR PCF8523_handler (void)
 Handler for PCF8523 peripheral.
 
FctERR PCF8523_handler_it (void)
 Handler for PCF8523 peripheral GPIO interrupt.
 

Variables

PCF8523_t PCF8523 = { 0 }
 PCF8523 User structure.
 

Detailed Description

PCF8523 Driver procedures.

Author
SMFSW

PCF8523: Real-Time Clock (RTC) and calendar

Function Documentation

◆ PCF8523_Get_Date()

FctERR PCF8523_Get_Date ( PCF8523_date * date,
const bool BCD )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PCF8523_Get_Time()

FctERR PCF8523_Get_Time ( PCF8523_time * time,
const bool BCD )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PCF8523_handler()

FctERR PCF8523_handler ( void )

Handler for PCF8523 peripheral.

Weak Functions
PCF8523 handler may be user implemented to suit custom needs
Note
May be called periodically to handle PCF8523 tasks
Alternately may be called when event occurs on PCF8523 pin (or by calling PCF8523_handler_it instead)
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PCF8523_handler_it()

FctERR PCF8523_handler_it ( void )

Handler for PCF8523 peripheral GPIO interrupt.

Note
PCF8523_INT1_GPIO_Init / PCF8523_INT2_GPIO_Init have to be called at init before using interrupt handler function
Weak Functions
PCF8523 GPIO interrupt handler may be user implemented to suit custom needs
Note
May be called periodically to handle PCF8523 tasks through interrupts
Returns
FctERR - error code
Here is the call graph for this function:

◆ PCF8523_Init_Sequence()

FctERR PCF8523_Init_Sequence ( void )

Initialization Sequence for PCF8523 peripheral.

Weak Functions
PCF8523 Init sequence may be user implemented if custom initialization sequence needed
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PCF8523_Set_Date()

FctERR PCF8523_Set_Date ( const PCF8523_date date,
const bool BCD )
Here is the call graph for this function:

◆ PCF8523_Set_Time()

FctERR PCF8523_Set_Time ( const PCF8523_time time,
const bool BCD )
Here is the call graph for this function:

Variable Documentation

◆ PCF8523

PCF8523_t PCF8523 = { 0 }

PCF8523 User structure.