|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
PCA9685 Driver procedures. More...


Data Structures | |
| struct | PCA9685_t |
| PCA9685 user interface struct. More... | |
Macros | |
| #define | PCA9685_DEF_FREQ 500U |
| Default frequency to affect to PCA9685 register (range from 24Hz to 1526Hz) | |
| #define | PCA9685_MAX_CLOCK_FREQ 50000000UL |
| PCA9685 Maximum external clock frequency. | |
| #define | PCA9685_NB_CHANNELS 16U |
| PCA9685 Number of channels. | |
| #define | PCA9685_DEFAULT_SUB1_CALL_ADDR (0xE2U >> 1U) |
| PCA9685 SUB1 CALL Address. | |
| #define | PCA9685_DEFAULT_SUB2_CALL_ADDR (0xE4U >> 1U) |
| PCA9685 SUB2 CALL Address. | |
| #define | PCA9685_DEFAULT_SUB3_CALL_ADDR (0xE8U >> 1U) |
| PCA9685 SUB3 CALL Address. | |
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. | |
| uint32_t | PCA9685_Get_Clock_Freq (PCA9685_t *const pCpnt) |
| Gets external clock frequency. | |
Variables | |
| PCA9685_t | PCA9685 [I2C_PCA9685_NB] |
| PCA9685 User structure. | |
PCA9685 Driver procedures.
PCA9685: 16-channel, 12-bit PWM Fm+ I2C-bus LED controller
| #define PCA9685_DEF_FREQ 500U |
Default frequency to affect to PCA9685 register (range from 24Hz to 1526Hz)
| #define PCA9685_DEFAULT_SUB1_CALL_ADDR (0xE2U >> 1U) |
PCA9685 SUB1 CALL Address.
| #define PCA9685_DEFAULT_SUB2_CALL_ADDR (0xE4U >> 1U) |
PCA9685 SUB2 CALL Address.
| #define PCA9685_DEFAULT_SUB3_CALL_ADDR (0xE8U >> 1U) |
PCA9685 SUB3 CALL Address.
| #define PCA9685_MAX_CLOCK_FREQ 50000000UL |
PCA9685 Maximum external clock frequency.
| #define PCA9685_NB_CHANNELS 16U |
PCA9685 Number of channels.
|
inline |
Gets external clock frequency.
| [in] | pCpnt | - Pointer to PCA9685 component |
| FctERR PCA9685_Init_Sequence | ( | PCA9685_t *const | pCpnt | ) |
Initialization Sequence for PCA9685 peripheral.
| [in] | pCpnt | - Pointer to PCA9685 component |


| FctERR PCA9685_Set_Clock_Freq | ( | PCA9685_t *const | pCpnt, |
| const uint32_t | freq ) |
Sets external clock frequency.
| [in,out] | pCpnt | - Pointer to PCA9685 component |
| [in] | freq | - External clock frequency in Hz |

|
extern |
PCA9685 User structure.