Lines Matching refs:BIT

14 #define APDS9960_ENABLE_GEN		BIT(6)
15 #define APDS9960_ENABLE_PIEN BIT(5)
16 #define APDS9960_ENABLE_AIEN BIT(4)
17 #define APDS9960_ENABLE_WEN BIT(3)
18 #define APDS9960_ENABLE_PEN BIT(2)
19 #define APDS9960_ENABLE_AEN BIT(1)
20 #define APDS9960_ENABLE_PON BIT(0)
32 #define APDS9960_PERS_PPERS (BIT(4) | BIT(5) | BIT(6) | BIT(7))
33 #define APDS9960_APERS_MASK (BIT(0) | BIT(1) | BIT(2) | BIT(3))
36 #define APDS9960_CONFIG1_WLONG BIT(1)
40 #define APDS9960_PPULSE_LENGTH_8US BIT(6)
41 #define APDS9960_PPULSE_LENGTH_16US BIT(7)
42 #define APDS9960_PPULSE_LENGTH_32US (BIT(7) | BIT(6))
45 #define APDS9960_CONTROL_LDRIVE (BIT(6) | BIT(7))
46 #define APDS9960_CONTROL_PGAIN (BIT(3) | BIT(2))
47 #define APDS9960_CONTROL_AGAIN (BIT(0) | BIT(1))
50 #define APDS9960_LED_DRIVE_50MA BIT(6)
51 #define APDS9960_LED_DRIVE_25MA BIT(7)
52 #define APDS9960_LED_DRIVE_12_5MA (BIT(6) | BIT(7))
55 #define APDS9960_PGAIN_2X BIT(2)
56 #define APDS9960_PGAIN_4X BIT(3)
57 #define APDS9960_PGAIN_8X (BIT(2) | BIT(3))
60 #define APDS9960_AGAIN_4X BIT(0)
61 #define APDS9960_AGAIN_16X BIT(1)
62 #define APDS9960_AGAIN_64X (BIT(0) | BIT(1))
65 #define APDS9960_CONFIG2_CPSIEN BIT(6)
66 #define APDS9960_CONFIG2_PSIEN BIT(7)
69 #define APDS9960_PLED_BOOST_150 BIT(4)
70 #define APDS9960_PLED_BOOST_200 BIT(5)
71 #define APDS9960_PLED_BOOST_300 (BIT(5) | BIT(4))
79 #define APDS9960_STATUS_CPSAT BIT(7)
80 #define APDS9960_STATUS_PGSAT BIT(6)
81 #define APDS9960_STATUS_PINT BIT(5)
82 #define APDS9960_STATUS_AINT BIT(4)
83 #define APDS9960_STATUS_GINT BIT(2)
84 #define APDS9960_STATUS_PVALID BIT(1)
85 #define APDS9960_STATUS_AVALID BIT(0)
101 #define APDS9960_CONFIG3_PCMP BIT(5)
102 #define APDS9960_CONFIG3_SAI BIT(4)
103 #define APDS9960_CONFIG3_PMSK_U BIT(3)
104 #define APDS9960_CONFIG3_PMSK_D BIT(2)
105 #define APDS9960_CONFIG3_PMSK_L BIT(1)
106 #define APDS9960_CONFIG3_PMSK_R BIT(0)
112 #define APDS9960_GCONFIG1_GFIFOTH (BIT(7) | BIT(6))
113 #define APDS9960_GCONFIG1_GEXMSK (BIT(5) | BIT(4) | BIT(3) | BIT(2))
114 #define APDS9960_GCONFIG1_GEXPERS (BIT(1) | BIT(0))
117 #define APDS9960_GCONFIG2_GGAIN (BIT(6) | BIT(5))
118 #define APDS9960_GCONFIG2_GLDRIVE (BIT(4) | BIT(3))
119 #define APDS9960_GCONFIG2_WTIME (BIT(2) | BIT(1) | BIT(0))
122 #define APDS9960_GGAIN_2X BIT(5)
123 #define APDS9960_GGAIN_4X BIT(6)
124 #define APDS9960_GGAIN_8X (BIT(6) | BIT(5))
127 #define APDS9960_LED_GDRIVE_50MA BIT(3)
128 #define APDS9960_LED_GDRIVE_25MA BIT(4)
129 #define APDS9960_LED_GDRIVE_12_5MA (BIT(4) | BIT(3))
146 #define APDS9960_GPULSE_GPLEN (BIT(7) | BIT(6))
147 #define APDS9960_GPULSE_GPULSE (BIT(5) | BIT(4) | BIT(3) |\
148 BIT(2) | BIT(1) | BIT(0))
151 #define APDS9960_GPLEN_8US BIT(6)
152 #define APDS9960_GPLEN_16US BIT(7)
153 #define APDS9960_GPLEN_32US (BIT(7) | BIT(6))
156 #define APDS9960_GCONFIG3_GDIMS (BIT(1) | BIT(0))
160 #define APDS9960_GCONFIG4_GFIFO_CLR BIT(2)
161 #define APDS9960_GCONFIG4_GIEN BIT(1)
162 #define APDS9960_GCONFIG4_GMODE BIT(0)
167 #define APDS9960_GSTATUS_GFOV BIT(1)
168 #define APDS9960_GSTATUS_GVALID BIT(0)
184 #define APDS9960_DEFAULT_PERS BIT(4)
185 #define APDS9960_DEFAULT_CONFIG2 (BIT(6) | BIT(0))