#ifndef __APM_16D_H__ #define __APM_16D_H__ #include /*ALSPS REGS*/ #define ALS_CMD 0x01 #define ALS_DT1 0x02 #define ALS_DT2 0x03 #define ALS_THDH1 0x04 #define ALS_THDH2 0x05 #define ALS_THDL1 0x06 #define ALS_THDL2 0x07 #define ALSPS_STATUS 0x08 #define PS_CMD 0x09 #define PS_DT 0x0A #define PS_THDH 0x0B #define PS_THDL 0x0C /*ALS Command*/ #define SD_ALS (1 << 0) #define INT_ALS (1 << 1) #define IT_ALS (0x03 << 2) #define THD_ALS (0x03 << 4) #define GAIN_ALS (0x03 << 6) /*Proximity sensor command*/ #define SD_PS (1 << 0) #define INT_PS (1 << 1) #define IT_PS (0x03 << 2) #define DR_PS (1 << 4) #define SLP_PS (0x03 << 5) #define INTM_PS (1 << 7) #endif