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


Data Structures | |
| struct | APDS9930_t |
| APDS9930 user interface struct. More... | |
Macros | |
| #define | APDS9930_CHIP_ID 0x39U |
| APDS9930 Chip ID to check against. | |
| #define | APDS9930_DEVICE_FACTOR 52U |
| APDS9930 Device factor. | |
| #define | APDS9930_DEF_PROX_PULSES 8U |
| Recommended proximity pulses in a cycle. | |
Enumerations | |
| enum | APDS9930_als_gain_ex { APDS9930__ALS_GAIN_1X = 0U , APDS9930__ALS_GAIN_8X , APDS9930__ALS_GAIN_16X , APDS9930__ALS_GAIN_120X , APDS9930__ALS_GAIN_1ON6X , APDS9930__ALS_GAIN_8ON6X } |
| Gain values of APDS9930 ALS. More... | |
| enum | APDS9930_drive_strength_ex { APDS9930__STRENGTH_100MA = 0U , APDS9930__STRENGTH_50MA , APDS9930__STRENGTH_25MA , APDS9930__STRENGTH_12_5MA , APDS9930__STRENGTH_11_1MA , APDS9930__STRENGTH_5_6MA , APDS9930__STRENGTH_2_8MA , APDS9930__STRENGTH_1_4MA } |
| Proximity LED Drive strength values. More... | |
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) | |
| uint32_t | APDS9930_Get_Lux (const APDS9930_t *const pCpnt) |
| Get current Illuminance (in lux) | |
| 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] |
| APDS9930 User structure. | |
APDS9930 Driver procedures.
APDS9930: Digital Proximity and Ambient Light Sensor
| #define APDS9930_CHIP_ID 0x39U |
APDS9930 Chip ID to check against.
| #define APDS9930_DEF_PROX_PULSES 8U |
Recommended proximity pulses in a cycle.
| #define APDS9930_DEVICE_FACTOR 52U |
APDS9930 Device factor.
| enum APDS9930_als_gain_ex |
Gain values of APDS9930 ALS.
Proximity LED Drive strength values.
|
inline |
Get current Illuminance (in lux)
| [in] | pCpnt | - Pointer to APDS9930 component |
| FctERR APDS9930_handler | ( | APDS9930_t *const | pCpnt | ) |
Handler for APDS9930 peripheral.
| [in] | pCpnt | - Pointer to APDS9930 component |


| FctERR APDS9930_handler_all | ( | void | ) |
Handler for all APDS9930 peripherals.

| FctERR APDS9930_handler_it | ( | APDS9930_t *const | pCpnt | ) |
Handler for APDS9930 peripheral GPIO interrupt.
| [in] | pCpnt | - Pointer to APDS9930 component |


| FctERR APDS9930_handler_it_all | ( | void | ) |
Handler for all APDS9930 peripherals GPIO interrupt.

| FctERR APDS9930_Init_Sequence | ( | APDS9930_t *const | pCpnt | ) |
Initialization Sequence for APDS9930 peripheral.
| [in] | pCpnt | - Pointer to APDS9930 component |


| void APDS9930_Set_LPC | ( | APDS9930_t *const | pCpnt | ) |
Set proper LPC value (Lux per Count)
| [in] | pCpnt | - Pointer to APDS9930 component |

|
extern |
APDS9930 User structure.