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

PCA9685 Driver procedures. More...

#include "PCA9685.h"
#include <math.h>
Include dependency graph for PCA9685_proc.c:

Functions

FctERR PCA9685_Init_Sequence (PCA9685_t *const pCpnt)
 Initialization Sequence for PCA9685 peripheral.
 
FctERR PCA9685_Set_Clock_Freq (PCA9685_t *const pCpnt, const uint32_t freq)
 Sets external clock frequency.
 

Variables

PCA9685_t PCA9685 [I2C_PCA9685_NB] = { 0 }
 PCA9685 User structure.
 

Detailed Description

PCA9685 Driver procedures.

Author
SMFSW

PCA9685: 16-channel, 12-bit PWM Fm+ I2C-bus LED controller

Function Documentation

◆ PCA9685_Init_Sequence()

FctERR PCA9685_Init_Sequence ( PCA9685_t *const pCpnt)

Initialization Sequence for PCA9685 peripheral.

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

◆ PCA9685_Set_Clock_Freq()

FctERR PCA9685_Set_Clock_Freq ( PCA9685_t *const pCpnt,
const uint32_t freq )

Sets external clock frequency.

Parameters
[in,out]pCpnt- Pointer to PCA9685 component
[in]freq- External clock frequency in Hz
Returns
FctERR - ErrorCode
Here is the caller graph for this function:

Variable Documentation

◆ PCA9685

PCA9685_t PCA9685[I2C_PCA9685_NB] = { 0 }

PCA9685 User structure.