Back to home page

OSCL-LXR

 
 

    


0001 ======================
0002 Kernel driver isl29003
0003 ======================
0004 
0005 Supported chips:
0006 
0007 * Intersil ISL29003
0008 
0009 Prefix: 'isl29003'
0010 
0011 Addresses scanned: none
0012 
0013 Datasheet:
0014 http://www.intersil.com/data/fn/fn7464.pdf
0015 
0016 Author: Daniel Mack <daniel@caiaq.de>
0017 
0018 
0019 Description
0020 -----------
0021 The ISL29003 is an integrated light sensor with a 16-bit integrating type
0022 ADC, I2C user programmable lux range select for optimized counts/lux, and
0023 I2C multi-function control and monitoring capabilities. The internal ADC
0024 provides 16-bit resolution while rejecting 50Hz and 60Hz flicker caused by
0025 artificial light sources.
0026 
0027 The driver allows to set the lux range, the bit resolution, the operational
0028 mode (see below) and the power state of device and can read the current lux
0029 value, of course.
0030 
0031 
0032 Detection
0033 ---------
0034 
0035 The ISL29003 does not have an ID register which could be used to identify
0036 it, so the detection routine will just try to read from the configured I2C
0037 address and consider the device to be present as soon as it ACKs the
0038 transfer.
0039 
0040 
0041 Sysfs entries
0042 -------------
0043 
0044 range:
0045         == ===========================
0046         0: 0 lux to 1000 lux (default)
0047         1: 0 lux to 4000 lux
0048         2: 0 lux to 16,000 lux
0049         3: 0 lux to 64,000 lux
0050         == ===========================
0051 
0052 resolution:
0053         == =====================
0054         0: 2^16 cycles (default)
0055         1: 2^12 cycles
0056         2: 2^8 cycles
0057         3: 2^4 cycles
0058         == =====================
0059 
0060 mode:
0061         == =================================================
0062         0: diode1's current (unsigned 16bit) (default)
0063         1: diode1's current (unsigned 16bit)
0064         2: difference between diodes (l1 - l2, signed 15bit)
0065         == =================================================
0066 
0067 power_state:
0068         == =================================================
0069         0: device is disabled (default)
0070         1: device is enabled
0071         == =================================================
0072 
0073 lux (read only):
0074         returns the value from the last sensor reading
0075