Go to the documentation of this file.
46 #ifndef CONFIG_ISL29020_DEFAULT_ADDRESS
47 #define CONFIG_ISL29020_DEFAULT_ADDRESS 0x44
@ ISL29020_RANGE_64K
set range to 0-64000 lux
int isl29020_init(isl29020_t *dev, const isl29020_params_t *params)
Initialize a new ISL29020 device.
Device descriptor for ISL29020 sensors.
float lux_fac
factor to calculate actual lux value
int isl29020_enable(const isl29020_t *dev)
Enable the given sensor.
unsigned int i2c_t
Default i2c_t type definition.
int isl29020_disable(const isl29020_t *dev)
Disable the given sensor.
@ ISL29020_RANGE_16K
set range to 0-16000 lux
isl29020_mode_t
Possible modes for the ISL29020 sensor.
uint8_t addr
address on that bus
isl29020_range_t
Possible range values for the ISL29020 sensor.
@ ISL29020_MODE_IR
set sensor to detect infrared light
isl29020_mode_t mode
measurement mode to use
i2c_t i2c
I2C bus the device is connected to.
Data structure holding the full set of configuration parameters.
@ ISL29020_MODE_AMBIENT
set sensor to detect ambient light
isl29020_params_t params
device initialization parameters
int isl29020_read(const isl29020_t *dev)
Read a lighting value from the sensor, the result is given in lux.
@ ISL29020_RANGE_4K
set range to 0-4000 lux
@ ISL29020_RANGE_1K
set range to 0-1000 lux
isl29020_range_t range
range setting to use
Low-level I2C peripheral driver interface definition.