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


Data Structures | |
| union | uTSL2591_REG_MAP |
| Union of TSL2591 registry map. More... | |
Enumerations | |
| enum | TSL2591_light { TSL2591__LIGHT_FULL = 0U , TSL2591__LIGHT_IR , TSL2591__LIGHT_VISIBLE } |
| Light types of TSL2591. More... | |
Functions | |
| FctERR | TSL2591_Write_En (TSL2591_t *const pCpnt, const uint8_t en) |
| Write TSL2591 Enable register. | |
| FctERR | TSL2591_Write_Cfg (TSL2591_t *const pCpnt, const uint8_t cfg) |
| Write TSL2591 Config. | |
| FctERR | TSL2591_Set_PON (TSL2591_t *const pCpnt, const bool en) |
| Oscillator Enable / Disable. | |
| FctERR | TSL2591_Set_AEN (TSL2591_t *const pCpnt, const bool en) |
| ALS module Enable / Disable. | |
| FctERR | TSL2591_Set_AIEN (TSL2591_t *const pCpnt, const bool en) |
| ALS interrupt module Enable / Disable. | |
| FctERR | TSL2591_Set_Gain (TSL2591_t *const pCpnt, const TSL2591_gain gain) |
| Gain configuration. | |
| FctERR | TSL2591_Set_Integration_Time (TSL2591_t *const pCpnt, const TSL2591_integ integ) |
| Integration time configuration. | |
| FctERR | TSL2591_Set_ALS_Pesistence (TSL2591_t *const pCpnt, const TSL2591_it_persist persist) |
| ALS Persistence configuration. | |
| FctERR | TSL2591_Set_AILT (TSL2591_t *const pCpnt, const uint16_t thr) |
| ALS interrupt low threshold configuration. | |
| FctERR | TSL2591_Set_AIHT (TSL2591_t *const pCpnt, const uint16_t thr) |
| ALS interrupt high threshold configuration. | |
| FctERR | TSL2591_Set_AIT (TSL2591_t *const pCpnt, const uint16_t lthr, const uint16_t hthr) |
| ALS interrupt thresholds configuration. | |
| FctERR | TSL2591_Set_NPAILT (TSL2591_t *const pCpnt, const uint16_t thr) |
| ALS interrupt Persist Low threshold filter configuration. | |
| FctERR | TSL2591_Set_NPAIHT (TSL2591_t *const pCpnt, const uint16_t thr) |
| ALS interrupt Persist High threshold filter configuration. | |
| FctERR | TSL2591_Set_NPAIT (TSL2591_t *const pCpnt, const uint16_t lthr, const uint16_t hthr) |
| ALS interrupt Persist threshold filters configuration. | |
| FctERR | TSL2591_SF_Force_IT (TSL2591_t *const pCpnt) |
| Force ALS interruption. | |
| FctERR | TSL2591_SF_Clear_IT (TSL2591_t *const pCpnt) |
| Clear pending ALS interruption. | |
| FctERR | TSL2591_SF_Clear_IT_PERS (TSL2591_t *const pCpnt) |
| Clear pending ALS & Persistence interruptions. | |
| FctERR | TSL2591_SF_Clear_PERS (TSL2591_t *const pCpnt) |
| Clear pending Persistence interruption. | |
| FctERR | TSL2591_Get_ChipID (TSL2591_t *const pCpnt, uint8_t *const id) |
| Get TSL2591 chip ID. | |
| FctERR | TSL2591_Reset (TSL2591_t *const pCpnt) |
| Reset TSL2591 chip. | |
| FctERR | TSL2591_Get_Full (TSL2591_t *const pCpnt, uint16_t *const full) |
| Get Full conversion (Channel 0) | |
| FctERR | TSL2591_Get_IR (TSL2591_t *const pCpnt, uint16_t *const ir) |
| Get IR conversion (Channel 1) | |
| void | TSL2591_INT_GPIO_Init (TSL2591_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Interrupt GPIO pin init for TSL2591. | |
| bool | TSL2591_INT_GPIO_Get (const TSL2591_t *const pCpnt) |
| Interrupt GPIO pin getter for TSL2591. | |
TSL2591 Driver extensions.
TSL2591: Very-high sensitivity light-to-digital converter
| enum TSL2591_light |
|
inline |
Get TSL2591 chip ID.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in,out] | id | - pointer to chip ID result |


|
inline |
Get Full conversion (Channel 0)
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in,out] | full | - pointer to Full conversion result |

|
inline |
Get IR conversion (Channel 1)
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in,out] | ir | - pointer to IR conversion result |

| bool TSL2591_INT_GPIO_Get | ( | const TSL2591_t *const | pCpnt | ) |
Interrupt GPIO pin getter for TSL2591.
| [in] | pCpnt | - Pointer to TSL2591 component |


| void TSL2591_INT_GPIO_Init | ( | TSL2591_t *const | pCpnt, |
| GPIO_TypeDef *const | GPIOx, | ||
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Interrupt GPIO pin init for TSL2591.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | GPIOx | - INT port |
| [in] | GPIO_Pin | - INT pin |
| [in] | GPIO_Active | INT pin active state |

|
inline |
Reset TSL2591 chip.
| [in] | pCpnt | - Pointer to TSL2591 component |

| FctERR TSL2591_Set_AEN | ( | TSL2591_t *const | pCpnt, |
| const bool | en ) |
ALS module Enable / Disable.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | en | - 0 Disable, 1 Enable |

| FctERR TSL2591_Set_AIEN | ( | TSL2591_t *const | pCpnt, |
| const bool | en ) |
ALS interrupt module Enable / Disable.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | en | - 0 Disable, 1 Enable |

|
inline |
ALS interrupt high threshold configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | thr | - High threshold value |

|
inline |
ALS interrupt low threshold configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | thr | - Low threshold value |

|
inline |
ALS interrupt thresholds configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | lthr | - Low threshold value |
| [in] | hthr | - High threshold value |


|
inline |
ALS Persistence configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | persist | - Persistence value |

| FctERR TSL2591_Set_Gain | ( | TSL2591_t *const | pCpnt, |
| const TSL2591_gain | gain ) |
Gain configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | gain | - Gain value |

| FctERR TSL2591_Set_Integration_Time | ( | TSL2591_t *const | pCpnt, |
| const TSL2591_integ | integ ) |
Integration time configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | integ | - Integration time value |

|
inline |
ALS interrupt Persist High threshold filter configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | thr | - Persist High threshold filter value |

|
inline |
ALS interrupt Persist Low threshold filter configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | thr | - Persist Low threshold filter value |

|
inline |
ALS interrupt Persist threshold filters configuration.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | lthr | - Low threshold filter value |
| [in] | hthr | - High threshold filter value |

| FctERR TSL2591_Set_PON | ( | TSL2591_t *const | pCpnt, |
| const bool | en ) |
Oscillator Enable / Disable.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | en | - 0 Disable, 1 Enable |

|
inline |
Clear pending ALS interruption.
| [in] | pCpnt | - Pointer to TSL2591 component |


|
inline |
Clear pending ALS & Persistence interruptions.
| [in] | pCpnt | - Pointer to TSL2591 component |

|
inline |
Clear pending Persistence interruption.
| [in] | pCpnt | - Pointer to TSL2591 component |

|
inline |
Force ALS interruption.
| [in] | pCpnt | - Pointer to TSL2591 component |

|
inline |
Write TSL2591 Config.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | cfg | - Configuration register value |


|
inline |
Write TSL2591 Enable register.
| [in] | pCpnt | - Pointer to TSL2591 component |
| [in] | en | - Enable register value |

