|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
TCS3472 Driver. More...
#include "sarmfsw.h"#include "I2C_component.h"#include "I2C_peripheral.h"#include "TCS3472_proc.h"#include "TCS3472_ex.h"

Data Structures | |
| union | uTCS3472_CMD |
| Union for COMMAND register of TCS3472. More... | |
| union | uTCS3472_REG__ENABLE |
| Union for ENABLE register of TCS3472. More... | |
| union | uTCS3472_REG__PERSIST |
| Union for PERSIST register of TCS3472. More... | |
| union | uTCS3472_REG__CONFIG |
| Union for CONFIG register of TCS3472. More... | |
| union | uTCS3472_REG__CONTROL |
| Union for CONTROL register of TCS3472. More... | |
| union | uTCS3472_REG__STATUS |
| Union for STATUS register of TCS3472. More... | |
Macros | |
| #define | I2C_TCS3472_NB 1U |
| Number of TCS3472 peripherals. | |
| #define | TCS34721_ADDR 0x39U |
| TCS34721 Base address. | |
| #define | TCS34723_ADDR 0x39U |
| TCS34723 Base address. | |
| #define | TCS34725_ADDR 0x29U |
| TCS34725 Base address. | |
| #define | TCS34727_ADDR 0x29U |
| TCS34727 Base address. | |
| #define | TCS3472_BASE_ADDR TCS34725_ADDR |
| TCS3472 Base address. | |
Functions | |
| FctERR | TCS3472_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress) |
| Initialization for TCS3472 peripheral. | |
| FctERR | TCS3472_Init_Single (void) |
| Initialization for TCS3472 peripheral. | |
| FctERR | TCS3472_Write (I2C_slave_t *const pSlave, const uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Write function for TCS3472. | |
| FctERR | TCS3472_Read (I2C_slave_t *const pSlave, uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Read function for TCS3472. | |
| FctERR | TCS3472_Write_Word (I2C_slave_t *const pSlave, const uint16_t *data, const uint16_t addr) |
| I2C Word Write (little endian) function for TCS3472. | |
| FctERR | TCS3472_Read_Word (I2C_slave_t *const pSlave, uint16_t *data, const uint16_t addr) |
| I2C Word Read (little endian) function for TCS3472. | |
| FctERR | TCS3472_Write_Special (I2C_slave_t *const pSlave, const TCS3472_spec_func func) |
| I2C Special function Write function for TCS3472. | |
TCS3472 Driver.
TCS3472: Color light-to-digital converter with IR filter
| #define I2C_TCS3472_NB 1U |
Number of TCS3472 peripherals.
| #define TCS34721_ADDR 0x39U |
TCS34721 Base address.
| #define TCS34723_ADDR 0x39U |
TCS34723 Base address.
| #define TCS34725_ADDR 0x29U |
TCS34725 Base address.
| #define TCS34727_ADDR 0x29U |
TCS34727 Base address.
| #define TCS3472_BASE_ADDR TCS34725_ADDR |
TCS3472 Base address.
| enum TCS3472_gain |
| enum TCS3472_it_persist |
Persistence control of TCS3472.
| enum TCS3472_reg |
Register map enum of TCS3472.
| enum TCS3472_spec_func |
| enum TCS3472_transaction |
| FctERR TCS3472_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress ) |
Initialization for TCS3472 peripheral.
| [in] | idx | - TCS3472 index |
| [in] | hi2c | - pointer to TCS3472 I2C instance |
| [in] | devAddress | - TCS3472 device address |


| FctERR TCS3472_Init_Single | ( | void | ) |
Initialization for TCS3472 peripheral.

| FctERR TCS3472_Read | ( | I2C_slave_t *const | pSlave, |
| uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Read function for TCS3472.
| [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 TCS3472_Read_Word | ( | I2C_slave_t *const | pSlave, |
| uint16_t * | data, | ||
| const uint16_t | addr ) |
I2C Word Read (little endian) function for TCS3472.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in,out] | data | - pointer to read to |
| [in] | addr | - Address to read from |


| FctERR TCS3472_Write | ( | I2C_slave_t *const | pSlave, |
| const uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Write function for TCS3472.
| [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 |


| FctERR TCS3472_Write_Special | ( | I2C_slave_t *const | pSlave, |
| const TCS3472_spec_func | func ) |
I2C Special function Write function for TCS3472.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in] | func | - special function to execute |


| FctERR TCS3472_Write_Word | ( | I2C_slave_t *const | pSlave, |
| const uint16_t * | data, | ||
| const uint16_t | addr ) |
I2C Word Write (little endian) function for TCS3472.
| [in,out] | pSlave | - Pointer to I2C slave instance |
| [in] | data | - pointer to write from |
| [in] | addr | - Address to write to |

