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

APDS9930 Driver procedures. More...

#include "APDS9930.h"
Include dependency graph for APDS9930_proc.c:

Functions

FctERR APDS9930_Init_Sequence (APDS9930_t *const pCpnt)
 Initialization Sequence for APDS9930 peripheral.
 
void APDS9930_Set_LPC (APDS9930_t *const pCpnt)
 Set proper LPC value (Lux per Count)
 
FctERR APDS9930_handler (APDS9930_t *const pCpnt)
 Handler for APDS9930 peripheral.
 
FctERR APDS9930_handler_it (APDS9930_t *const pCpnt)
 Handler for APDS9930 peripheral GPIO interrupt.
 
FctERR APDS9930_handler_all (void)
 Handler for all APDS9930 peripherals.
 
FctERR APDS9930_handler_it_all (void)
 Handler for all APDS9930 peripherals GPIO interrupt.
 

Variables

APDS9930_t APDS9930 [I2C_APDS9930_NB] = { 0 }
 APDS9930 User structure.
 
const uint8_t APDS9930_ALS_gain_tab [4] = { 1U, 8U, 16U, 120U }
 
const uint8_t APDS9930_Prox_gain_tab [4] = { 1U, 2U, 4U, 8U }
 

Detailed Description

APDS9930 Driver procedures.

Author
SMFSW

APDS9930: Digital Proximity and Ambient Light Sensor

Function Documentation

◆ APDS9930_handler()

FctERR APDS9930_handler ( APDS9930_t *const pCpnt)

Handler for APDS9930 peripheral.

Weak Functions
APDS9930 handler may be user implemented to suit custom needs
Note
May be called periodically to handle APDS9930 tasks
Alternately may be called when event occurs on APDS9930 pin (or by calling APDS9930_handler_it instead)
Parameters
[in]pCpnt- Pointer to APDS9930 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ APDS9930_handler_all()

FctERR APDS9930_handler_all ( void )

Handler for all APDS9930 peripherals.

Note
May be called periodically to handle all APDS9930 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ APDS9930_handler_it()

FctERR APDS9930_handler_it ( APDS9930_t *const pCpnt)

Handler for APDS9930 peripheral GPIO interrupt.

Note
APDS9930_INT_GPIO_Init has to be called at init before using interrupt handler function
Weak Functions
APDS9930 GPIO interrupt handler may be user implemented to suit custom needs
Note
May be called periodically to handle APDS9930 tasks through interrupts
Parameters
[in]pCpnt- Pointer to APDS9930 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ APDS9930_handler_it_all()

FctERR APDS9930_handler_it_all ( void )

Handler for all APDS9930 peripherals GPIO interrupt.

Note
APDS9930_INT_GPIO_Init has to be called at init before using interrupt handler function
May be called periodically to handle all APDS9930 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ APDS9930_Init_Sequence()

FctERR APDS9930_Init_Sequence ( APDS9930_t *const pCpnt)

Initialization Sequence for APDS9930 peripheral.

Weak Functions
APDS9930 Init sequence may be user implemented if custom initialization sequence needed
Parameters
[in]pCpnt- Pointer to APDS9930 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ APDS9930_Set_LPC()

void APDS9930_Set_LPC ( APDS9930_t *const pCpnt)

Set proper LPC value (Lux per Count)

Note
Should be called after Configuration change of Integration time or Gain
Parameters
[in]pCpnt- Pointer to APDS9930 component
Here is the caller graph for this function:

Variable Documentation

◆ APDS9930

APDS9930_t APDS9930[I2C_APDS9930_NB] = { 0 }

APDS9930 User structure.

◆ APDS9930_ALS_gain_tab

const uint8_t APDS9930_ALS_gain_tab[4] = { 1U, 8U, 16U, 120U }

◆ APDS9930_Prox_gain_tab

const uint8_t APDS9930_Prox_gain_tab[4] = { 1U, 2U, 4U, 8U }