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


Data Structures | |
| struct | TCS3400_t |
| TCS3400 user interface struct. More... | |
Macros | |
| #define | TCS34005_CHIP_ID 0x90U |
| TCS34001/TCS34005 Chip ID to check against. | |
| #define | TCS34007_CHIP_ID 0x93U |
| TCS34003/TCS34007 Chip ID to check against. | |
| #define | TCS3400_IR_COUNT 13.3f |
| Counts per uW/cm2 for IR channel. | |
| #define | TCS3400_CLEAR_COUNT 14.0f |
| Counts per uW/cm2 for Clear channel. | |
| #define | TCS3400_RED_COUNT 17.0f |
| Counts per uW/cm2 for Red channel. | |
| #define | TCS3400_GREEN_COUNT 14.5f |
| Counts per uW/cm2 for Green channel. | |
| #define | TCS3400_BLUE_COUNT 11.8f |
| Counts per uW/cm2 for Blue channel. | |
Functions | |
| FctERR | TCS3400_Init_Sequence (TCS3400_t *const pCpnt) |
| Initialization Sequence for TCS3400 peripheral. | |
| uint32_t | TCS3400_Get_Temp (const TCS3400_t *const pCpnt) |
| Get current Color temperature (in Kelvin) | |
| uint32_t | TCS3400_Get_Lux (const TCS3400_t *const pCpnt) |
| Get current Illuminance (in lux) | |
| FctERR | TCS3400_handler (TCS3400_t *const pCpnt) |
| Handler for TCS3400 peripheral. | |
| FctERR | TCS3400_handler_it (TCS3400_t *const pCpnt) |
| Handler for TCS3400 peripheral GPIO interrupt. | |
| FctERR | TCS3400_handler_all (void) |
| Handler for all TCS3400 peripherals. | |
| FctERR | TCS3400_handler_it_all (void) |
| Handler for all TCS3400 peripherals GPIO interrupt. | |
Variables | |
| TCS3400_t | TCS3400 [I2C_TCS3400_NB] |
| TCS34000 User structure. | |
TCS3400 Driver procedures.
TCS3400: Color Light-to-Digital Converter
| #define TCS34005_CHIP_ID 0x90U |
TCS34001/TCS34005 Chip ID to check against.
| #define TCS34007_CHIP_ID 0x93U |
TCS34003/TCS34007 Chip ID to check against.
| #define TCS3400_BLUE_COUNT 11.8f |
Counts per uW/cm2 for Blue channel.
| #define TCS3400_CLEAR_COUNT 14.0f |
Counts per uW/cm2 for Clear channel.
| #define TCS3400_GREEN_COUNT 14.5f |
Counts per uW/cm2 for Green channel.
| #define TCS3400_IR_COUNT 13.3f |
Counts per uW/cm2 for IR channel.
| #define TCS3400_RED_COUNT 17.0f |
Counts per uW/cm2 for Red channel.
|
inline |
Get current Illuminance (in lux)
| [in] | pCpnt | - Pointer to TCS3400 component |
|
inline |
Get current Color temperature (in Kelvin)
| [in] | pCpnt | - Pointer to TCS3400 component |
| FctERR TCS3400_handler | ( | TCS3400_t *const | pCpnt | ) |
Handler for TCS3400 peripheral.
| [in] | pCpnt | - Pointer to TCS3400 component |


| FctERR TCS3400_handler_all | ( | void | ) |
Handler for all TCS3400 peripherals.

| FctERR TCS3400_handler_it | ( | TCS3400_t *const | pCpnt | ) |
Handler for TCS3400 peripheral GPIO interrupt.
| [in] | pCpnt | - Pointer to TCS3400 component |


| FctERR TCS3400_handler_it_all | ( | void | ) |
Handler for all TCS3400 peripherals GPIO interrupt.

| FctERR TCS3400_Init_Sequence | ( | TCS3400_t *const | pCpnt | ) |
Initialization Sequence for TCS3400 peripheral.
| [in] | pCpnt | - Pointer to TCS3400 component |


|
extern |
TCS34000 User structure.