41 #define TCS37727_I2C_ADDRESS    0x29 
   55 #ifndef CONFIG_TCS37727_ATIME_DEFAULT 
   56 #define CONFIG_TCS37727_ATIME_DEFAULT  200000 
uint_fast8_t i2c_t
Default i2c_t type definition.
 
void tcs37727_set_rgbc_standby(const tcs37727_t *dev)
Set RGBC disable, this deactivates periodic RGBC measurements.
 
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.
 
int tcs37727_init(tcs37727_t *dev, const tcs37727_params_t *params)
Initialize the given TCS37727 sensor.
 
@ TCS37727_NODEV
no TCS37727 device found on the bus
 
@ TCS37727_NOBUS
access to the configured I2C bus failed
 
@ TCS37727_OK
everything worked as expected
 
Low-level I2C peripheral driver interface definition.
 
Struct for storing TCS37727 sensor data.
 
uint32_t green
IR compensated channels green.
 
uint32_t red
IR compensated channels red.
 
uint32_t clear
channels clear
 
uint32_t blue
IR compensated channels blue.
 
uint32_t ct
Color temperature.
 
TCS37727 configuration parameters.
 
uint8_t addr
the sensors address on the I2C bus
 
uint32_t atime
conversion time in microseconds
 
i2c_t i2c
I2C bus the sensor is connected to.
 
Device descriptor for TCS37727 sensors.
 
tcs37727_params_t p
device configuration