Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
apds990x.h File Reference

Go to the source code of this file.

Data Structures

struct  apds990x_chip_factors
 
struct  apds990x_platform_data
 

Macros

#define APDS_IRLED_CURR_12mA   0x3
 
#define APDS_IRLED_CURR_25mA   0x2
 
#define APDS_IRLED_CURR_50mA   0x1
 
#define APDS_IRLED_CURR_100mA   0x0
 
#define APDS_PARAM_SCALE   4096
 

Macro Definition Documentation

#define APDS_IRLED_CURR_100mA   0x0

Definition at line 32 of file apds990x.h.

#define APDS_IRLED_CURR_12mA   0x3

Definition at line 29 of file apds990x.h.

#define APDS_IRLED_CURR_25mA   0x2

Definition at line 30 of file apds990x.h.

#define APDS_IRLED_CURR_50mA   0x1

Definition at line 31 of file apds990x.h.

#define APDS_PARAM_SCALE   4096

struct apds990x_chip_factors - defines effect of the cover window : Total glass attenuation : clear channel factor 1 for raw to lux conversion : IR channel factor 1 for raw to lux conversion : clear channel factor 2 for raw to lux conversion : IR channel factor 2 for raw to lux conversion : device factor for conversion formulas

Structure for tuning ALS calculation to match with environment. Values depend on the material above the sensor and the sensor itself. If the GA is zero, driver will use uncovered sensor default values format: decimal value * APDS_PARAM_SCALE except df which is plain integer.

Definition at line 48 of file apds990x.h.