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


Data Structures | |
| union | uPCA9624_REG_MAP |
| PCA9624 Register map union. More... | |
Functions | |
| FctERR | PCA9624_Set_Auto_Increment (PCA9624_t *const pCpnt, const PCA962x_reg_inc inc) |
| Set auto increment option for PCA9624 registers. | |
| FctERR | PCA9624_Set_MODE1 (PCA9624_t *const pCpnt, const uPCA9624_REG__MODE1 MODE1) |
| Set MODE1 register. | |
| FctERR | PCA9624_Set_MODE2 (PCA9624_t *const pCpnt, uPCA9624_REG__MODE2 MODE2) |
| Set MODE2 register. | |
| FctERR | PCA9624_Set_Latch (PCA9624_t *const pCpnt, const PCA96xx_latch latch) |
| Set latch type for PCA9624 peripheral. | |
| FctERR | PCA9624_Set_Mode_LED (PCA9624_t *const pCpnt, const PCA9xxx_chan chan, const PCA962x_ledout mode) |
| Set PCA9624 peripheral LED mode. | |
| FctERR | PCA9624_Set_Mode_LEDs (PCA9624_t *const pCpnt, const uint8_t chans, const PCA962x_ledout mode) |
| Set PCA9624 peripheral multiple LEDs mode. | |
| FctERR | PCA9624_ReadVals (PCA9624_t *const pCpnt, uint8_t pDuty[], const bool indexed, const PCA9xxx_chan start, const PCA9xxx_chan end) |
| Read PWM duty cycle array of values of a PCA9624. | |
| FctERR | PCA9624_ReadVals_Array (PCA9624_t *const pCpnt, uint8_t pDuty[], const PCA9xxx_chan start, const PCA9xxx_chan end) |
| Read PWM duty cycle array of values of a PCA9624. | |
| FctERR | PCA9624_ReadVals_IndexedArray (PCA9624_t *const pCpnt, uint8_t pDuty[], const PCA9xxx_chan start, const PCA9xxx_chan end) |
| Read PWM duty cycle array of values of a PCA9624. | |
| FctERR | PCA9624_ReadVals_All (PCA9624_t *const pCpnt, uint8_t pDuty[8]) |
| Read all PWM duty cycle array of values of a PCA9624 (for the 8 channels) | |
| FctERR | PCA9624_ReadVal (PCA9624_t *const pCpnt, const PCA9xxx_chan chan, uint8_t *const pDuty) |
| Read PWM duty cycle value of a PCA9624 channel. | |
| FctERR | PCA9624_PutVals (PCA9624_t *const pCpnt, const uint8_t pDuty[], const bool indexed, const PCA9xxx_chan start, const PCA9xxx_chan end) |
| Send PWM duty cycle array of values to apply on a PCA9624. | |
| FctERR | PCA9624_PutVals_Array (PCA9624_t *const pCpnt, const uint8_t pDuty[], const PCA9xxx_chan start, const PCA9xxx_chan end) |
| Send PWM duty cycle array of values to apply on a PCA9624. | |
| FctERR | PCA9624_PutVals_IndexedArray (PCA9624_t *const pCpnt, const uint8_t pDuty[], const PCA9xxx_chan start, const PCA9xxx_chan end) |
| Send PWM duty cycle array of values to apply on a PCA9624. | |
| FctERR | PCA9624_PutVals_All (PCA9624_t *const pCpnt, const uint8_t pDuty[8]) |
| Send all PWM duty cycle array of values to apply on a PCA9624 (for the 8 channels) | |
| FctERR | PCA9624_PutVal (PCA9624_t *const pCpnt, const PCA9xxx_chan chan, const uint8_t duty) |
| Send PWM duty cycle value to apply on a PCA9624 channel. | |
| FctERR | PCA9624_SetVal (PCA9624_t *const pCpnt, const PCA9xxx_chan chan) |
| Send PWM Full ON value to apply on a PCA9624 channel. | |
| FctERR | PCA9624_ClrVal (PCA9624_t *const pCpnt, const PCA9xxx_chan chan) |
| Send PWM Full OFF value to apply on a PCA9624 channel. | |
| FctERR | PCA9624_Reset (PCA9624_t *const pCpnt) |
| Reset for PCA9624 peripheral. | |
| FctERR | PCA9624_Reset_All (I2C_HandleTypeDef *const hi2c) |
| General call reset function for PCA9624. | |
| FctERR | PCA9624_ReadRegister (PCA9624_t *const pCpnt, const PCA9624_reg reg, uint8_t *const val) |
| Reads register from PCA9624. | |
| void | PCA9624_OE_GPIO_Init (PCA9624_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Output Enable GPIO pin init for PCA9624. | |
| void | PCA9624_OE_GPIO_Set (PCA9624_t *const pCpnt, const bool state) |
| Output Enable GPIO pin setter for PCA9624. | |
PCA9624 Driver extensions.
PCA9624: 8-bit Fm+ I2C-bus 100mA 40V LED driver
| FctERR PCA9624_ClrVal | ( | PCA9624_t *const | pCpnt, |
| const PCA9xxx_chan | chan ) |
Send PWM Full OFF value to apply on a PCA9624 channel.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | chan | - channel number |

| void PCA9624_OE_GPIO_Init | ( | PCA9624_t *const | pCpnt, |
| GPIO_TypeDef *const | GPIOx, | ||
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Output Enable GPIO pin init for PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | GPIOx | - OE port |
| [in] | GPIO_Pin | - OE pin |
| [in] | GPIO_Active | OE pin active state |

| void PCA9624_OE_GPIO_Set | ( | PCA9624_t *const | pCpnt, |
| const bool | state ) |
Output Enable GPIO pin setter for PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | state | - state to write on OE pin (0: inactive, 1: active) |

| FctERR PCA9624_PutVal | ( | PCA9624_t *const | pCpnt, |
| const PCA9xxx_chan | chan, | ||
| const uint8_t | duty ) |
Send PWM duty cycle value to apply on a PCA9624 channel.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | chan | - channel number |
| [in] | duty | - Duty cycle |

| FctERR PCA9624_PutVals | ( | PCA9624_t *const | pCpnt, |
| const uint8_t | pDuty[], | ||
| const bool | indexed, | ||
| const PCA9xxx_chan | start, | ||
| const PCA9xxx_chan | end ) |
Send PWM duty cycle array of values to apply on a PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | pDuty | - Pointer to duty cycle values |
| [in] | indexed | - if set to true, pDuty start address will be indexed by the value of start parameter (thus pDuty always needs first channels cells even if not sent) |
| [in] | start | - starting channel number |
| [in] | end | - ending channel number |


|
inline |
Send all PWM duty cycle array of values to apply on a PCA9624 (for the 8 channels)
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | pDuty | - Pointer to duty cycle values (8 bytes) |

|
inline |
Send PWM duty cycle array of values to apply on a PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | pDuty | - Pointer to duty cycle values |
| [in] | start | - starting channel number |
| [in] | end | - ending channel number |

|
inline |
Send PWM duty cycle array of values to apply on a PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | pDuty | - Pointer to duty cycle values (pDuty start address will be indexed by the value of start parameter, thus needs first channels cells) |
| [in] | start | - starting channel number |
| [in] | end | - ending channel number |

| FctERR PCA9624_ReadRegister | ( | PCA9624_t *const | pCpnt, |
| const PCA9624_reg | reg, | ||
| uint8_t *const | val ) |
Reads register from PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | reg | - Register address to read from |
| [in,out] | val | - Pointer to the data for receive |

| FctERR PCA9624_ReadVal | ( | PCA9624_t *const | pCpnt, |
| const PCA9xxx_chan | chan, | ||
| uint8_t *const | pDuty ) |
Read PWM duty cycle value of a PCA9624 channel.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | chan | - channel number |
| [in,out] | pDuty | - Pointer to duty cycle data |

| FctERR PCA9624_ReadVals | ( | PCA9624_t *const | pCpnt, |
| uint8_t | pDuty[], | ||
| const bool | indexed, | ||
| const PCA9xxx_chan | start, | ||
| const PCA9xxx_chan | end ) |
Read PWM duty cycle array of values of a PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in,out] | pDuty | - Pointer to duty cycle values |
| [in] | indexed | - if set to true, pDuty start address will be indexed by the value of start parameter (thus pDuty always needs first channels cells even if not sent) |
| [in] | start | - starting channel number |
| [in] | end | - ending channel number |


|
inline |
Read all PWM duty cycle array of values of a PCA9624 (for the 8 channels)
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in,out] | pDuty | - Pointer to duty cycle values (8 bytes) |

|
inline |
Read PWM duty cycle array of values of a PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in,out] | pDuty | - Pointer to duty cycle values |
| [in] | start | - starting channel number |
| [in] | end | - ending channel number |

|
inline |
Read PWM duty cycle array of values of a PCA9624.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in,out] | pDuty | - Pointer to duty cycle values (pDuty start address will be indexed by the value of start parameter, thus needs first channels cells) |
| [in] | start | - starting channel number |
| [in] | end | - ending channel number |

| FctERR PCA9624_Reset | ( | PCA9624_t *const | pCpnt | ) |
Reset for PCA9624 peripheral.
| [in] | pCpnt | - Pointer to PCA9624 component |
| FctERR PCA9624_Reset_All | ( | I2C_HandleTypeDef *const | hi2c | ) |
General call reset function for PCA9624.
| [in] | hi2c | - pointer to general call I2C instance |
| FctERR PCA9624_Set_Auto_Increment | ( | PCA9624_t *const | pCpnt, |
| const PCA962x_reg_inc | inc ) |
Set auto increment option for PCA9624 registers.
| [in,out] | pCpnt | - Pointer to PCA9624 component |
| [in] | inc | - auto increment option |

| FctERR PCA9624_Set_Latch | ( | PCA9624_t *const | pCpnt, |
| const PCA96xx_latch | latch ) |
Set latch type for PCA9624 peripheral.
| [in,out] | pCpnt | - Pointer to PCA9624 component |
| [in] | latch | - Latch type |

|
inline |
Set MODE1 register.
| [in,out] | pCpnt | - Pointer to PCA9624 component |
| [in] | MODE1 | - MODE1 register value |

|
inline |
Set MODE2 register.
| [in,out] | pCpnt | - Pointer to PCA9624 component |
| [in] | MODE2 | - MODE2 register value |

| FctERR PCA9624_Set_Mode_LED | ( | PCA9624_t *const | pCpnt, |
| const PCA9xxx_chan | chan, | ||
| const PCA962x_ledout | mode ) |
Set PCA9624 peripheral LED mode.
| [in,out] | pCpnt | - Pointer to PCA9624 component |
| [in] | chan | - PCA9624 channel |
| [in] | mode | - channel mode (on/off/dimming/blinking) |

| FctERR PCA9624_Set_Mode_LEDs | ( | PCA9624_t *const | pCpnt, |
| const uint8_t | chans, | ||
| const PCA962x_ledout | mode ) |
Set PCA9624 peripheral multiple LEDs mode.
| [in,out] | pCpnt | - Pointer to PCA9624 component |
| [in] | chans | - PCA9624 channels mask (masked channels will be affected to new mode, other ones remaining unchanged) |
| [in] | mode | - channel mode (on/off/dimming/blinking) |


| FctERR PCA9624_SetVal | ( | PCA9624_t *const | pCpnt, |
| const PCA9xxx_chan | chan ) |
Send PWM Full ON value to apply on a PCA9624 channel.
| [in] | pCpnt | - Pointer to PCA9624 component |
| [in] | chan | - channel number |
