Go to the documentation of this file.
42 #define TCS37727_I2C_ADDRESS 0x29
56 #ifndef CONFIG_TCS37727_ATIME_DEFAULT
57 #define CONFIG_TCS37727_ATIME_DEFAULT 200000
i2c_t i2c
I2C bus the sensor is connected to.
void tcs37727_set_rgbc_standby(const tcs37727_t *dev)
Set RGBC disable, this deactivates periodic RGBC measurements.
@ TCS37727_OK
everything worked as expected
uint32_t green
IR compensated channels green.
uint32_t atime
conversion time in microseconds
unsigned int i2c_t
Default i2c_t type definition.
TCS37727 configuration parameters.
@ TCS37727_NODEV
no TCS37727 device found on the bus
void tcs37727_set_rgbc_active(const tcs37727_t *dev)
Set RGBC enable, this activates periodic RGBC measurements.
void tcs37727_read(const tcs37727_t *dev, tcs37727_data_t *data)
Read sensor's data.
Device descriptor for TCS37727 sensors.
uint32_t red
IR compensated channels red.
int tcs37727_init(tcs37727_t *dev, const tcs37727_params_t *params)
Initialize the given TCS37727 sensor.
@ TCS37727_NOBUS
access to the configured I2C bus failed
tcs37727_params_t p
device configuration
Struct for storing TCS37727 sensor data.
uint8_t addr
the sensors address on the I2C bus
uint32_t blue
IR compensated channels blue.
uint32_t ct
Color temperature.
Low-level I2C peripheral driver interface definition.
uint32_t clear
channels clear