Searched refs:lux (Results 1 - 10 of 10) sorted by relevance
/drivers/staging/iio/light/ |
H A D | tsl2583.c | 2 * Device driver for monitoring ambient light intensity (lux) 78 u16 lux; member in struct:taos_als_info 181 * Reads and calculates current lux value. 191 * calculate the lux. 196 u32 lux; /* raw lux calculated from device data */ local 208 return chip->als_cur_info.lux; /* busy, so return LAST VALUE */ 226 ret = chip->als_cur_info.lux; /* return LAST VALUE */ 253 /* extract ALS/lux data */ 265 ret = chip->als_cur_info.lux [all...] |
H A D | Kconfig | 14 in lux, proximity infrared sensing and normal infrared sensing.
|
H A D | tsl2563.c | 374 * Conversions between lux and ADC values. 376 * The basic formula is lux = c0 * adc0 - c1 * adc1, where c0 and c1 are 427 * Convert normalized, scaled ADC values to lux. 432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; local 439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; 441 return (unsigned int) (lux >> ADC_FRAC_BITS);
|
H A D | isl29018.c | 167 static int isl29018_read_lux(struct i2c_client *client, int *lux) argument 178 *lux = (lux_data * chip->range * chip->lux_scale) >> chip->adc_bit;
|
/drivers/misc/ |
H A D | isl29020.c | 55 unsigned long int lux; local 82 lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; 83 return sprintf(buf, "%ld\n", lux);
|
H A D | tsl2550.c | 159 unsigned int lux; local 177 lux = ((c0 - c1) * ratio_lut[r]) / 256; 179 lux = 0; 184 return lux > TSL2550_MAX_LUX ? TSL2550_MAX_LUX : lux;
|
H A D | apds990x.c | 152 u32 lux; member in struct:apds990x_chip 263 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) argument 269 if (lux == 0) 271 else if (lux == APDS_RANGE) 283 * Math: threshold = lux * cpl where 285 * (count-per-lux) 289 lux = lux * (APDS_CALIB_SCALER / 4) / (chip->lux_calib / 4); 295 thres = lux * cpl / 64; 513 chip->lux [all...] |
H A D | bh1770glc.c | 107 #define BH1770_LUX_DEFAULT_RATE 1 /* Index to lux rate table */ 197 int lux) 199 chip->int_mode_lux = lux; 203 (lux << 1) | chip->int_mode_prox); 222 /* Proper proximity response needs fastest lux rate (100ms) */ 283 * Following two functions converts raw lux values from HW to normalized 305 u32 lux; local 306 lux = ((u32)raw * chip->lux_corr) / BH1770_LUX_CORR_SCALE; 307 return min(lux, (u32)BH1770_LUX_RANGE); 196 bh1770_lux_interrupt_control(struct bh1770_chip *chip, int lux) argument
|
H A D | bh1780gli.c | 132 static DEVICE_ATTR(lux, S_IRUGO, bh1780_show_lux, NULL);
|
H A D | isl29003.c | 312 /* lux */ 325 static DEVICE_ATTR(lux, S_IRUGO, isl29003_show_lux, NULL);
|
Completed in 111 milliseconds