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

PCF8523 Driver. More...

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

Functions

FctERR PCF8523_Init (void)
 Initialization for PCF8523 peripheral peripheral.
 
FctERR PCF8523_Write (const uint8_t *data, const uint16_t addr, const uint16_t nb)
 I2C Write function for PCF8523 peripheral.
 
FctERR PCF8523_Read (uint8_t *data, const uint16_t addr, const uint16_t nb)
 I2C Read function for PCF8523 peripheral.
 

Detailed Description

PCF8523 Driver.

Author
SMFSW

PCF8523: Real-Time Clock (RTC) and calendar

Function Documentation

◆ PCF8523_Init()

FctERR PCF8523_Init ( void )

Initialization for PCF8523 peripheral peripheral.

Weak Functions
PCF8523 Base address may be changed if user implemented
Returns
FctERR - error code
Here is the call graph for this function:

◆ PCF8523_Read()

FctERR PCF8523_Read ( uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Read function for PCF8523 peripheral.

Parameters
[in,out]data- pointer to read to
[in]addr- Address to read from
[in]nb- Number of bytes to read
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PCF8523_Write()

FctERR PCF8523_Write ( const uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Write function for PCF8523 peripheral.

Parameters
[in]data- pointer to write from
[in]addr- Address to write to
[in]nb- Number of bytes to write
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function: