Loading...
Searching...
No Matches

Interface definition for the TCS37727 sensor driver. More...

Detailed Description

Interface definition for the TCS37727 sensor driver.

Author
Felix Siebel f.sie.nosp@m.bel@.nosp@m.phyte.nosp@m.c.de
Johann Fischer j.fis.nosp@m.cher.nosp@m.@phyt.nosp@m.ec.d.nosp@m.e
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file tcs37727.h.

#include <stdint.h>
#include "periph/i2c.h"
+ Include dependency graph for tcs37727.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tcs37727_data_t
 Struct for storing TCS37727 sensor data. More...
 
struct  tcs37727_params_t
 TCS37727 configuration parameters. More...
 
struct  tcs37727_t
 Device descriptor for TCS37727 sensors. More...
 

Macros

#define TCS37727_I2C_ADDRESS   0x29
 Default Device Address.
 
#define CONFIG_TCS37727_ATIME_DEFAULT   200000
 Default RGBC integration time in microseconds.
 

Enumerations

enum  { TCS37727_OK = 0 , TCS37727_NOBUS = -1 , TCS37727_NODEV = -2 }
 Possible TCS27737 return values. More...
 

Functions

int tcs37727_init (tcs37727_t *dev, const tcs37727_params_t *params)
 Initialize the given TCS37727 sensor.
 
void tcs37727_set_rgbc_active (const tcs37727_t *dev)
 Set RGBC enable, this activates periodic RGBC measurements.
 
void tcs37727_set_rgbc_standby (const tcs37727_t *dev)
 Set RGBC disable, this deactivates periodic RGBC measurements.
 
void tcs37727_read (const tcs37727_t *dev, tcs37727_data_t *data)
 Read sensor's data.