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


Data Structures | |
| struct | TSL2591_t |
| TSL2591 user interface struct. More... | |
Macros | |
| #define | TSL2591_CHIP_ID 0x50U |
| TSL2591 Chip ID to check against. | |
| #define | TSL2591_DEVICE_FACTOR 53U |
| TSL2591 Device factor. | |
| #define | TSL2591_CH0_COUNTS 264.1f |
| Counts per uW/cm2 for CH0 (Full spectrum) | |
| #define | TSL2591_CH1_COUNTS 34.9f |
| Counts per uW/cm2 for CH1 (IR) | |
Functions | |
| FctERR | TSL2591_Init_Sequence (TSL2591_t *const pCpnt) |
| Initialization Sequence for TSL2591 peripheral. | |
| void | TSL2591_Set_CPL (TSL2591_t *const pCpnt) |
| Set proper CPL value (Counts per kiloLux) | |
| uint32_t | TSL2591_Get_Lux (const TSL2591_t *const pCpnt) |
| Get current Illuminance (in lux) | |
| FctERR | TSL2591_handler (TSL2591_t *const pCpnt) |
| Handler for TSL2591 peripheral. | |
| FctERR | TSL2591_handler_it (TSL2591_t *const pCpnt) |
| Handler for TSL2591 peripheral GPIO interrupt. | |
| FctERR | TSL2591_handler_all (void) |
| Handler for all TSL2591 peripherals. | |
| FctERR | TSL2591_handler_it_all (void) |
| Handler for all TSL2591 peripherals GPIO interrupt. | |
Variables | |
| TSL2591_t | TSL2591 [I2C_TSL2591_NB] |
| TSL2591 User structure. | |
TSL2591 Driver procedures.
TSL2591: Very-high sensitivity light-to-digital converter
| #define TSL2591_CH0_COUNTS 264.1f |
Counts per uW/cm2 for CH0 (Full spectrum)
| #define TSL2591_CH1_COUNTS 34.9f |
Counts per uW/cm2 for CH1 (IR)
| #define TSL2591_CHIP_ID 0x50U |
TSL2591 Chip ID to check against.
| #define TSL2591_DEVICE_FACTOR 53U |
TSL2591 Device factor.
|
inline |
Get current Illuminance (in lux)
| [in] | pCpnt | - Pointer to TSL2591 component |
| FctERR TSL2591_handler | ( | TSL2591_t *const | pCpnt | ) |
Handler for TSL2591 peripheral.
| [in] | pCpnt | - Pointer to TSL2591 component |


| FctERR TSL2591_handler_all | ( | void | ) |
Handler for all TSL2591 peripherals.

| FctERR TSL2591_handler_it | ( | TSL2591_t *const | pCpnt | ) |
Handler for TSL2591 peripheral GPIO interrupt.
| [in] | pCpnt | - Pointer to TSL2591 component |


| FctERR TSL2591_handler_it_all | ( | void | ) |
Handler for all TSL2591 peripherals GPIO interrupt.

| FctERR TSL2591_Init_Sequence | ( | TSL2591_t *const | pCpnt | ) |
Initialization Sequence for TSL2591 peripheral.
| [in] | pCpnt | - Pointer to TSL2591 component |


| void TSL2591_Set_CPL | ( | TSL2591_t *const | pCpnt | ) |
Set proper CPL value (Counts per kiloLux)
| [in] | pCpnt | - Pointer to TSL2591 component |

|
extern |
TSL2591 User structure.