/linux/Documentation/misc-devices/ |
H A D | isl29003.rst | 22 ADC, I2C user programmable lux range select for optimized counts/lux, and 27 The driver allows to set the lux range, the bit resolution, the operational 28 mode (see below) and the power state of device and can read the current lux 46 0: 0 lux to 1000 lux (default) 47 1: 0 lux to 4000 lux 48 2: 0 lux to 16,000 lux [all...] |
H A D | apds990x.rst | 29 only lux values. Lux value is calculated using information from the both 30 channels. HW threshold level is calculated from the given lux value to match 60 RO - measured lux value
|
H A D | bh1770glc.rst | 25 ALS produces 16 bit lux values. The chip contains interrupt logic to produce 46 so that measurement produces about the expected lux value. 63 RO - measured lux value
|
/linux/drivers/iio/light/ |
H A D | cm32181.c | 298 * cm32181_get_lux() - report current lux value 301 * Convert sensor raw data to lux. It depends on integration 304 * Return: Positive value is lux, otherwise is error code. 311 u64 lux; in cm32181_get_lux() local 317 lux = cm32181->lux_per_bit; in cm32181_get_lux() 318 lux *= cm32181->lux_per_bit_base_it; in cm32181_get_lux() 319 lux = div_u64(lux, als_it); in cm32181_get_lux() 325 lux *= ret; in cm32181_get_lux() 326 lux * in cm32181_get_lux() [all...] |
H A D | tsl2583.c | 3 * Device driver for monitoring ambient light intensity (lux) 65 u16 lux; member 145 /* Default lux table. */ in tsl2583_defaults() 151 * Reads and calculates current lux value. 161 * calculate the lux. 166 u32 lux; /* raw lux calculated from device data */ in tsl2583_get_lux() local 185 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2583_get_lux() 215 /* extract ALS/lux data */ in tsl2583_get_lux() 228 * calculated lux t in tsl2583_get_lux() [all...] |
H A D | apds9300.c | 66 unsigned long lux, tmp; in apds9300_calculate_lux() local 74 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux() 77 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux() 79 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux() 81 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux() 83 lux = 0; in apds9300_calculate_lux() 86 return lux / 100000; in apds9300_calculate_lux()
|
H A D | tsl2772.c | 3 * Device driver for monitoring ambient light intensity in (lux) and proximity 149 u16 lux; member 401 * tsl2772_get_lux() - Reads and calculates current lux value. 407 * device gain. The code supports multiple lux equations through the lux table 408 * coefficients. A lux gain trim is applied to each lux equation, and then the 409 * maximum lux within the interval 0..65535 is selected. 434 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2772_get_lux() 457 ret = chip->als_cur_info.lux; in tsl2772_get_lux() 465 int lux; tsl2772_get_lux() local [all...] |
H A D | ltrf216a.c | 82 * in calculating lux. 95 * remains constant during the measurement of lux. 245 u64 lux; in ltrf216a_get_lux() local 257 lux = greendata * data->info->lux_multiplier * LTRF216A_WIN_FAC; in ltrf216a_get_lux() 259 return lux; in ltrf216a_get_lux()
|
H A D | tsl2591.c | 417 * tsl2591_read_channel_data - Reads raw channel data and calculates lux 419 * Formula for lux calculation; 423 * lux = ((C0DATA - C1DATA) * (1 - (C1DATA / C0DATA))) / CPL 425 * Scale values to get more representative value of lux i.e. 426 * lux = ((C0DATA - C1DATA) * (1000 - ((C1DATA * 1000) / C0DATA))) / CPL 439 int counts_per_lux, int_time_fval, gain_multi, lux; in tsl2591_read_channel_data() local 477 /* Calculate counts per lux value */ in tsl2591_read_channel_data() 482 /* Calculate lux value */ in tsl2591_read_channel_data() 483 lux = ((als_ch0 - als_ch1) * in tsl2591_read_channel_data() 486 dev_dbg(&client->dev, "Raw lux calculatio in tsl2591_read_channel_data() [all...] |
H A D | gp2ap002.c | 212 * This array maps current and lux. 214 * Ambient light sensing range is 3 to 55000 lux. 219 * When the ADC measures 0, return 0 lux. 231 u16 lux; in gp2ap002_get_lux() local 241 lux = gp2ap002_illuminance_table[res]; in gp2ap002_get_lux() 243 return (int)lux; in gp2ap002_get_lux()
|
H A D | si1133.c | 626 /* Deactivate lux measurements if they were active */ in si1133_measure() 709 int lux; in si1133_get_lux() local 715 /* Activate lux channels */ in si1133_get_lux() 732 lux = si1133_calc_polynomial(high_vis, ir, in si1133_get_lux() 737 lux = si1133_calc_polynomial(low_vis, ir, in si1133_get_lux() 742 *val = lux >> SI1133_LUX_OUTPUT_FRACTION; in si1133_get_lux() 882 * The channel configuration for the lux measurement was taken from :
|
H A D | tsl2563.c | 369 * Conversions between lux and ADC values. 371 * The basic formula is lux = c0 * adc0 - c1 * adc1, where c0 and c1 are 421 /* Convert normalized, scaled ADC values to lux. */ 425 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local 432 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux() 434 return (unsigned int) (lux >> ADC_FRAC_BITS); in tsl2563_adc_to_lux()
|
H A D | ltr501.c | 306 unsigned long ratio, lux; in ltr501_calculate_lux() local 315 lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); in ltr501_calculate_lux() 317 lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); in ltr501_calculate_lux() 319 lux = LTR501_LUX_CONV(1690, vis_data, 169, ir_data); in ltr501_calculate_lux() 321 lux = 0; in ltr501_calculate_lux() 323 return lux / 1000; in ltr501_calculate_lux()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-light-tsl2583 | 6 value which is later used in calculating illuminance in lux. 13 used in calculating illuminance in lux. 19 This property is the known externally illuminance (in lux).
|
H A D | sysfs-bus-iio-light-tsl2772 | 6 value which is later used in calculating illuminance in lux.
|
/linux/drivers/misc/ |
H A D | tsl2550.c | 145 unsigned int lux; in tsl2550_calculate_lux() local 161 lux = ((c0 - c1) * ratio_lut[r]) / 256; in tsl2550_calculate_lux() 163 lux = 0; in tsl2550_calculate_lux() 168 return lux > TSL2550_MAX_LUX ? TSL2550_MAX_LUX : lux; in tsl2550_calculate_lux()
|
H A D | isl29020.c | 43 unsigned long int lux; in als_lux_input_data_show() local 70 lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; in als_lux_input_data_show() 71 return sprintf(buf, "%lu\n", lux); in als_lux_input_data_show()
|
H A D | apds990x.c | 138 u32 lux; member 248 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) in apds990x_lux_to_threshold() argument 254 if (lux == 0) in apds990x_lux_to_threshold() 256 else if (lux == APDS_RANGE) in apds990x_lux_to_threshold() 268 * Math: threshold = lux * cpl where in apds990x_lux_to_threshold() 270 * (count-per-lux) in apds990x_lux_to_threshold() 274 lux = lux * (APDS_CALIB_SCALER / 4) / (chip->lux_calib / 4); in apds990x_lux_to_threshold() 280 thres = lux * cpl / 64; in apds990x_lux_to_threshold() 498 chip->lux in apds990x_irq() [all...] |
H A D | bh1770glc.c | 93 #define BH1770_LUX_DEFAULT_RATE 1 /* Index to lux rate table */ 180 int lux) in bh1770_lux_interrupt_control() argument 182 chip->int_mode_lux = lux; in bh1770_lux_interrupt_control() 186 (lux << 1) | chip->int_mode_prox); in bh1770_lux_interrupt_control() 205 /* Proper proximity response needs fastest lux rate (100ms) */ in bh1770_lux_rate() 266 * Following two functions converts raw lux values from HW to normalized 288 u32 lux; in bh1770_lux_raw_to_adjusted() local 289 lux = ((u32)raw * chip->lux_corr) / BH1770_LUX_CORR_SCALE; in bh1770_lux_raw_to_adjusted() 290 return min(lux, (u32)BH1770_LUX_RANGE); in bh1770_lux_raw_to_adjusted()
|
/linux/drivers/hid/amd-sfh-hid/sfh1_1/ |
H A D | amd_sfh_interface.h | 149 u32 lux; member
|
H A D | amd_sfh_interface.c | 156 *ambient_light = amd_sfh_float_to_int(als_data.lux); in amd_sfh_als_info()
|
H A D | amd_sfh_desc.c | 238 als_input.illuminance_value = amd_sfh_float_to_int(als_data.lux); in get_input_rep()
|
/linux/Documentation/iio/ |
H A D | opt4060.rst | 25 lux = GREEN_RAW x 2.15e-3
|
/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun5i-a13-pocketbook-touch-lux-3.dts | 16 compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";
|
H A D | Makefile | 63 sun5i-a13-pocketbook-touch-lux-3.dtb \ 85 sun5i-a13-pocketbook-touch-lux-3.dtb \
|