Go to the documentation of this file.
177 uint16_t lower_threshold, uint16_t higher_threshold,
isl29125_interrupt_status_t
Configuration-3 Register 0x03 B1:0.
@ ISL29125_MODE_B
blue conversion only
isl29125_params_t params
device parameters
isl29125_range_t range
measurement range
int isl29125_read_irq_status(const isl29125_t *dev)
Read isl29125 interrupt status.
int isl29125_init(isl29125_t *dev, const isl29125_params_t *params)
Initialize a new ISL29125 device.
@ ISL29125_INTERRUPT_PERSIST_4
Int.
unsigned int i2c_t
Default i2c_t type definition.
@ ISL29125_INTERRUPT_CONV_DIS
RGB Conversion done to ~INT Control disable.
@ ISL29125_INTERRUPT_PERSIST_2
Int.
@ ISL29125_INTERRUPT_PERSIST_8
Int.
i2c_t i2c
I2C device the sensor is connected to.
float green
green lux value
isl29125_range_t
Supported RGB sensing range values of the ISL29125 sensor.
@ ISL29125_INTERRUPT_STATUS_GREEN
GREEN interrupt.
int isl29125_init_int(isl29125_t *dev, isl29125_interrupt_status_t interrupt_status, isl29125_interrupt_persist_t interrupt_persist, isl29125_interrupt_conven_t interrupt_conven, uint16_t lower_threshold, uint16_t higher_threshold, gpio_cb_t cb, void *arg)
Initialize interrupts.
Device descriptor for ISL29125 sensors.
@ ISL29125_RANGE_375
range: 5.7m - 375 lux
void isl29125_read_rgb_lux(const isl29125_t *dev, isl29125_rgb_t *dest)
Read RGB values from device.
@ ISL29125_MODE_RG
red and green conversion only
@ ISL29125_MODE_RGB
RGB conversion.
@ ISL29125_INTERRUPT_STATUS_NONE
No interrupt.
@ ISL29125_MODE_GB
green and blue conversion only
gpio_t gpio
GPIO pin for interrupt/sync mode.
@ ISL29125_INTERRUPT_PERSIST_1
Int.
isl29125_mode_t mode
AD conversion mode.
Data type for storing lux RGB sensor readings.
@ ISL29125_MODE_G
green conversion only
isl29125_mode_t
Supported operation modes of the ISL29125 sensor's AD conversion.
void(* gpio_cb_t)(void *arg)
Signature of event callback functions triggered from interrupts.
@ ISL29125_MODE_STANDBY
AD conversion not performed.
void isl29125_set_mode(const isl29125_t *dev, isl29125_mode_t mode)
Set the device's operation mode.
isl29125_interrupt_persist_t
Configuration-3 Register 0x03 B3:2.
@ ISL29125_RESOLUTION_12
resolution: 12 bit
@ ISL29125_INTERRUPT_STATUS_RED
RED interrupt.
Low-level GPIO peripheral driver interface definitions.
Device parameters for ISL29125 sensors.
void isl29125_read_rgb_color(const isl29125_t *dev, color_rgb_t *dest)
Read color values from device.
isl29125_resolution_t
Supported color resolutions of the ISL29125 sensor's AD conversion.
@ ISL29125_MODE_DOWN
ADC powered down.
Headers for the color handling module.
@ ISL29125_INTERRUPT_CONV_EN
RGB Conversion done to ~INT Control enable.
isl29125_resolution_t res
AD conversion resolution.
@ ISL29125_RESOLUTION_16
resolution: 16 bit
@ ISL29125_MODE_R
red conversion only
Data-structure describing a RGB color.
@ ISL29125_INTERRUPT_STATUS_BLUE
BLUE interrupt.
@ ISL29125_RANGE_10K
range: 0.152 - 10,000 lux
isl29125_interrupt_conven_t
Configuration-3 Register 0x03 B4.
Low-level I2C peripheral driver interface definition.