Home
last modified time | relevance | path

Searched refs:lux (Results 1 – 25 of 28) sorted by relevance

12

/linux/Documentation/misc-devices/
H A Disl29003.rst22 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 Dapds990x.rst29 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 Dbh1770glc.rst25 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 Dcm32181.c298 * 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 Dtsl2583.c3 * 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 Dapds9300.c66 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 Dtsl2772.c3 * 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 Dltrf216a.c82 * 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 Dtsl2591.c417 * 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 Dgp2ap002.c212 * 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 Dsi1133.c626 /* 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 Dtsl2563.c369 * 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 Dltr501.c306 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 Dsysfs-bus-iio-light-tsl25836 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 Dsysfs-bus-iio-light-tsl27726 value which is later used in calculating illuminance in lux.
/linux/drivers/misc/
H A Dtsl2550.c145 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 Disl29020.c43 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 Dapds990x.c138 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 Dbh1770glc.c93 #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 Damd_sfh_interface.h149 u32 lux; member
H A Damd_sfh_interface.c156 *ambient_light = amd_sfh_float_to_int(als_data.lux); in amd_sfh_als_info()
H A Damd_sfh_desc.c238 als_input.illuminance_value = amd_sfh_float_to_int(als_data.lux); in get_input_rep()
/linux/Documentation/iio/
H A Dopt4060.rst25 lux = GREEN_RAW x 2.15e-3
/linux/arch/arm/boot/dts/allwinner/
H A Dsun5i-a13-pocketbook-touch-lux-3.dts16 compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";
H A DMakefile63 sun5i-a13-pocketbook-touch-lux-3.dtb \
85 sun5i-a13-pocketbook-touch-lux-3.dtb \

12