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

APDS9960 Driver procedures. More...

#include "APDS9960.h"
Include dependency graph for APDS9960_proc.c:

Functions

FctERR APDS9960_Init_Sequence (APDS9960_t *const pCpnt)
 Initialization Sequence for APDS9960 peripheral.
 
FctERR APDS9960_handler (APDS9960_t *const pCpnt)
 Handler for APDS9960 peripheral.
 
FctERR APDS9960_handler_it (APDS9960_t *const pCpnt)
 Handler for APDS9960 peripheral GPIO interrupt.
 
FctERR APDS9960_handler_all (void)
 Handler for all APDS9960 peripherals.
 
FctERR APDS9960_handler_it_all (void)
 Handler for all APDS9960 peripherals GPIO interrupt.
 

Variables

APDS9960_t APDS9960 [I2C_APDS9960_NB] = { 0 }
 APDS9960 User structure.
 
const uint8_t APDS9960_ALS_gain_tab [4] = { 1U, 4U, 16U, 64U }
 
const uint8_t APDS9960_Prox_gain_tab [4] = { 1U, 2U, 4U, 8U }
 

Detailed Description

APDS9960 Driver procedures.

Author
SMFSW

APDS9960: Digital Proximity, Ambient Light, RGB and Gesture Sensor

Function Documentation

◆ APDS9960_handler()

FctERR APDS9960_handler ( APDS9960_t *const pCpnt)

Handler for APDS9960 peripheral.

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

◆ APDS9960_handler_all()

FctERR APDS9960_handler_all ( void )

Handler for all APDS9960 peripherals.

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

◆ APDS9960_handler_it()

FctERR APDS9960_handler_it ( APDS9960_t *const pCpnt)

Handler for APDS9960 peripheral GPIO interrupt.

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

◆ APDS9960_handler_it_all()

FctERR APDS9960_handler_it_all ( void )

Handler for all APDS9960 peripherals GPIO interrupt.

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

◆ APDS9960_Init_Sequence()

FctERR APDS9960_Init_Sequence ( APDS9960_t *const pCpnt)

Initialization Sequence for APDS9960 peripheral.

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

Variable Documentation

◆ APDS9960

APDS9960_t APDS9960[I2C_APDS9960_NB] = { 0 }

APDS9960 User structure.

◆ APDS9960_ALS_gain_tab

const uint8_t APDS9960_ALS_gain_tab[4] = { 1U, 4U, 16U, 64U }

◆ APDS9960_Prox_gain_tab

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