I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
APDS9960_t Struct Reference

APDS9960 user interface struct. More...

#include <APDS9960_proc.h>

Collaboration diagram for APDS9960_t:

Data Fields

uint16_t Red
 Current Red conversion.
 
uint16_t Green
 Current Green conversion.
 
uint16_t Blue
 Current Blue conversion.
 
uint16_t Clear
 Current Clear conversion.
 
uint8_t Prox
 Current Proximity raw value.
 
uint32_t Lux
 Current Illuminance (lux)
 
uint32_t Temp
 Current Color temperature (in Kelvin)
 
float xy [2]
 Current CIE1931 chromacity coordinates.
 
float IR_Ratio
 Current IR ratio (in percent)
 
float Saturation_Ratio
 Current Saturation ratio (in percent)
 
bool SaturationRipple
 Current Ripple saturation status (75% of saturation value)
 
bool Saturation
 Current Sensor saturation status.
 
struct { 
 
   I2C_slave_t *   slave_inst 
 Slave structure. More...
 
   PeripheralGPIO_t   INT_GPIO 
 Interrupt GPIO struct. More...
 
   float   mat [3][3] 
 RGB to XYZ matrix. More...
 
   APDS9960_als_gain   ADC_Gain 
 ADC (ALS & Color) sensor gain config. More...
 
   APDS9960_prox_gain   Prox_Gain 
 Proximity sensor gain config. More...
 
   APDS9960_pulse_length   Prox_Length 
 Proximity LED pulse length. More...
 
   APDS9960_drive_strength   Prox_Strength 
 Proximity LED drive strength. More...
 
   uint8_t   Prox_Pulses 
 Proximity pulses sent in a cycle. More...
 
   uint8_t   ADC_Integ_reg 
 ADC (ALS & Color) sensor integration time config (value written to register) More...
 
   uint16_t   ADC_Integ 
 ADC (ALS & Color) sensor integration time config. More...
 
   uint16_t   Wait 
 Sensor wait time config. More...
 
   uint16_t   ADC_LowThreshold 
 ADC (ALS & Color) Low Threshold config. More...
 
   uint16_t   ADC_HighThreshold 
 ADC (ALS & Color) High Threshold config. More...
 
   uint8_t   Prox_LowThreshold 
 Proximity Low Threshold config. More...
 
   uint8_t   Prox_HighThreshold 
 Proximity High Threshold config. More...
 
   bool   AIEN 
 Sensor ALS (Ambient Light Sensing) interrupts enabled config. More...
 
   bool   PIEN 
 Sensor Proximity interrupts enabled config. More...
 
   bool   GIEN 
 Gestures enabled config. More...
 
   bool   WEN 
 Wait between conversions enabled config. More...
 
   uint8_t   ChipID 
 chip ID More...
 
cfg 
 

Detailed Description

APDS9960 user interface struct.

Field Documentation

◆ ADC_Gain

APDS9960_als_gain APDS9960_t::ADC_Gain

ADC (ALS & Color) sensor gain config.

◆ ADC_HighThreshold

uint16_t APDS9960_t::ADC_HighThreshold

ADC (ALS & Color) High Threshold config.

◆ ADC_Integ

uint16_t APDS9960_t::ADC_Integ

ADC (ALS & Color) sensor integration time config.

◆ ADC_Integ_reg

uint8_t APDS9960_t::ADC_Integ_reg

ADC (ALS & Color) sensor integration time config (value written to register)

◆ ADC_LowThreshold

uint16_t APDS9960_t::ADC_LowThreshold

ADC (ALS & Color) Low Threshold config.

◆ AIEN

bool APDS9960_t::AIEN

Sensor ALS (Ambient Light Sensing) interrupts enabled config.

◆ Blue

uint16_t APDS9960_t::Blue

Current Blue conversion.

◆ [struct]

struct { ... } APDS9960_t::cfg

◆ ChipID

uint8_t APDS9960_t::ChipID

chip ID

◆ Clear

uint16_t APDS9960_t::Clear

Current Clear conversion.

◆ GIEN

bool APDS9960_t::GIEN

Gestures enabled config.

◆ Green

uint16_t APDS9960_t::Green

Current Green conversion.

◆ INT_GPIO

PeripheralGPIO_t APDS9960_t::INT_GPIO

Interrupt GPIO struct.

◆ IR_Ratio

float APDS9960_t::IR_Ratio

Current IR ratio (in percent)

◆ Lux

uint32_t APDS9960_t::Lux

Current Illuminance (lux)

◆ mat

float APDS9960_t::mat[3][3]

RGB to XYZ matrix.

◆ PIEN

bool APDS9960_t::PIEN

Sensor Proximity interrupts enabled config.

◆ Prox

uint8_t APDS9960_t::Prox

Current Proximity raw value.

◆ Prox_Gain

APDS9960_prox_gain APDS9960_t::Prox_Gain

Proximity sensor gain config.

◆ Prox_HighThreshold

uint8_t APDS9960_t::Prox_HighThreshold

Proximity High Threshold config.

◆ Prox_Length

APDS9960_pulse_length APDS9960_t::Prox_Length

Proximity LED pulse length.

◆ Prox_LowThreshold

uint8_t APDS9960_t::Prox_LowThreshold

Proximity Low Threshold config.

◆ Prox_Pulses

uint8_t APDS9960_t::Prox_Pulses

Proximity pulses sent in a cycle.

◆ Prox_Strength

APDS9960_drive_strength APDS9960_t::Prox_Strength

Proximity LED drive strength.

◆ Red

uint16_t APDS9960_t::Red

Current Red conversion.

◆ Saturation

bool APDS9960_t::Saturation

Current Sensor saturation status.

◆ Saturation_Ratio

float APDS9960_t::Saturation_Ratio

Current Saturation ratio (in percent)

◆ SaturationRipple

bool APDS9960_t::SaturationRipple

Current Ripple saturation status (75% of saturation value)

◆ slave_inst

I2C_slave_t* APDS9960_t::slave_inst

Slave structure.

◆ Temp

uint32_t APDS9960_t::Temp

Current Color temperature (in Kelvin)

◆ Wait

uint16_t APDS9960_t::Wait

Sensor wait time config.

◆ WEN

bool APDS9960_t::WEN

Wait between conversions enabled config.

◆ xy

float APDS9960_t::xy[2]

Current CIE1931 chromacity coordinates.


The documentation for this struct was generated from the following file: