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

PCA9952 Driver procedures. More...

#include "sarmfsw.h"
#include "PCA9952.h"
Include dependency graph for PCA9952_proc.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  PCA9952_t
 PCA9952 user interface struct. More...
 

Macros

#define PCA9952_NB_CHANNELS   16U
 PCA9952 Number of channels.
 
#define PCA9952_DEFAULT_SUBX_CALL_ADDR   (0xECU >> 1U)
 PCA9952 SUBx CALL Address.
 

Functions

FctERR PCA9952_Init_Sequence (PCA9952_t *const pCpnt)
 Initialization Sequence for PCA9952 peripheral.
 
FctERR PCA9952_calc_IREF (uint8_t *const pIREF, const float Rext, const float current)
 Compute IREF for PCA9952 peripheral.
 

Variables

PCA9952_t PCA9952 [I2C_PCA9952_NB]
 PCA9952 User structure.
 

Detailed Description

PCA9952 Driver procedures.

Author
SMFSW

PCA9952: 16-channel Fm+ I2C-bus 57 mA constant current LED driver

Macro Definition Documentation

◆ PCA9952_DEFAULT_SUBX_CALL_ADDR

#define PCA9952_DEFAULT_SUBX_CALL_ADDR   (0xECU >> 1U)

PCA9952 SUBx CALL Address.

◆ PCA9952_NB_CHANNELS

#define PCA9952_NB_CHANNELS   16U

PCA9952 Number of channels.

Function Documentation

◆ PCA9952_calc_IREF()

FctERR PCA9952_calc_IREF ( uint8_t *const pIREF,
const float Rext,
const float current )

Compute IREF for PCA9952 peripheral.

Parameters
[in,out]pIREF- Pointer to IREF result
[in]Rext- Rext value (in KOhm)
[in]current- Target current (in mA)
Returns
FctERR - ErrorCode (in case of IREF value overflow)

◆ PCA9952_Init_Sequence()

FctERR PCA9952_Init_Sequence ( PCA9952_t *const pCpnt)

Initialization Sequence for PCA9952 peripheral.

Weak Functions
PCA9952 Init sequence may be user implemented if custom initialization sequence needed
Parameters
[in]pCpnt- Pointer to PCA9952 component
Returns
FctERR - ErrorCode
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ PCA9952

PCA9952_t PCA9952[I2C_PCA9952_NB]
extern

PCA9952 User structure.