|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
TSL2591 Driver extensions. More...
#include "TSL2591.h"
Functions | |
| 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. | |
| 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
| 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 |

| 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 |

| 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 |

| 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 |
