|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
PCA9532 Driver. More...
#include "sarmfsw.h"#include "I2C_component.h"#include "I2C_peripheral.h"#include "PCA9xxx.h"#include "PCA9532_proc.h"#include "PCA9532_ex.h"

Data Structures | |
| union | uPCA9532_REG__INPUT0 |
| Union for INPUT0 register of PCA9532. More... | |
| union | uPCA9532_REG__INPUT1 |
| Union for INPUT1 register of PCA9532. More... | |
| union | uPCA9532_REG__INPUT |
| Union for INPUT registers of PCA9532. More... | |
| union | uPCA9532_REG__LS0 |
| Union for LS0 register of PCA9532. More... | |
| union | uPCA9532_REG__LS1 |
| Union for LS1 register of PCA9532. More... | |
| union | uPCA9532_REG__LS2 |
| Union for LS2 register of PCA9532. More... | |
| union | uPCA9532_REG__LS3 |
| Union for LS3 register of PCA9532. More... | |
| union | uPCA9532_REG__LS |
| Union for LS registers of PCA9532. More... | |
Macros | |
| #define | I2C_PCA9532_NB 1U |
| Number of PCA9532 peripherals. | |
| #define | PCA9532_BASE_ADDR 0x60U |
| PCA9532 Base Address. | |
Enumerations | |
| enum | PCA9532_reg { PCA9532__INPUT0 = 0U , PCA9532__INPUT1 , PCA9532__PSC0 , PCA9532__PWM0 , PCA9532__PSC1 , PCA9532__PWM1 , PCA9532__LS0 , PCA9532__LS1 , PCA9532__LS2 , PCA9532__LS3 } |
| Register map enum of PCA9532. More... | |
Functions | |
| FctERR | PCA9532_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress) |
| Initialization for PCA9532 peripheral. | |
| FctERR | PCA9532_Init_Single (void) |
| Initialization for PCA9532 peripheral. | |
| FctERR | PCA9532_Write (I2C_slave_t *const pSlave, const uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Write function for PCA9532. | |
| FctERR | PCA9532_Read (I2C_slave_t *const pSlave, uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Read function for PCA9532. | |
PCA9532 Driver.
PCA9532: 16-bit I2C-bus LED dimmer
| #define I2C_PCA9532_NB 1U |
Number of PCA9532 peripherals.
| #define PCA9532_BASE_ADDR 0x60U |
PCA9532 Base Address.
| enum PCA9532_reg |
Register map enum of PCA9532.
| FctERR PCA9532_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress ) |
Initialization for PCA9532 peripheral.
| [in] | idx | - PCA9532 index |
| [in] | hi2c | - pointer to PCA9532 I2C instance |
| [in] | devAddress | - PCA9532 device address |


| FctERR PCA9532_Init_Single | ( | void | ) |
Initialization for PCA9532 peripheral.

| FctERR PCA9532_Read | ( | I2C_slave_t *const | pSlave, |
| uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Read function for PCA9532.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in,out] | data | - pointer to read to |
| [in] | addr | - Address to read from |
| [in] | nb | - Number of bytes to read |


| FctERR PCA9532_Write | ( | I2C_slave_t *const | pSlave, |
| const uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Write function for PCA9532.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in] | data | - pointer to write from |
| [in] | addr | - Address to write to |
| [in] | nb | - Number of bytes to write |

