I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
TSL2591_ex.c File Reference

TSL2591 Driver extensions. More...

#include "TSL2591.h"
Include dependency graph for TSL2591_ex.c:

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.
 

Detailed Description

TSL2591 Driver extensions.

Author
SMFSW

TSL2591: Very-high sensitivity light-to-digital converter

Function Documentation

◆ TSL2591_INT_GPIO_Get()

bool TSL2591_INT_GPIO_Get ( const TSL2591_t *const pCpnt)

Interrupt GPIO pin getter for TSL2591.

Weak Functions
TSL2591 Interrupt GPIO pin getter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to TSL2591 component
Returns
INT pin state value (0: inactive, 1: active)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TSL2591_INT_GPIO_Init()

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.

Weak Functions
TSL2591 Interrupt GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to TSL2591 component
[in]GPIOx- INT port
[in]GPIO_Pin- INT pin
[in]GPIO_ActiveINT pin active state
Here is the call graph for this function:

◆ TSL2591_Set_AEN()

FctERR TSL2591_Set_AEN ( TSL2591_t *const pCpnt,
const bool en )

ALS module Enable / Disable.

Parameters
[in]pCpnt- Pointer to TSL2591 component
[in]en- 0 Disable, 1 Enable
Returns
FctERR - error code
Here is the call graph for this function:

◆ TSL2591_Set_AIEN()

FctERR TSL2591_Set_AIEN ( TSL2591_t *const pCpnt,
const bool en )

ALS interrupt module Enable / Disable.

Parameters
[in]pCpnt- Pointer to TSL2591 component
[in]en- 0 Disable, 1 Enable
Returns
FctERR - error code
Here is the call graph for this function:

◆ TSL2591_Set_Gain()

FctERR TSL2591_Set_Gain ( TSL2591_t *const pCpnt,
const TSL2591_gain gain )

Gain configuration.

Parameters
[in]pCpnt- Pointer to TSL2591 component
[in]gain- Gain value
Returns
FctERR - error code
Here is the call graph for this function:

◆ TSL2591_Set_Integration_Time()

FctERR TSL2591_Set_Integration_Time ( TSL2591_t *const pCpnt,
const TSL2591_integ integ )

Integration time configuration.

Parameters
[in]pCpnt- Pointer to TSL2591 component
[in]integ- Integration time value
Returns
FctERR - error code
Here is the call graph for this function:

◆ TSL2591_Set_PON()

FctERR TSL2591_Set_PON ( TSL2591_t *const pCpnt,
const bool en )

Oscillator Enable / Disable.

Parameters
[in]pCpnt- Pointer to TSL2591 component
[in]en- 0 Disable, 1 Enable
Returns
FctERR - error code
Here is the call graph for this function: