Interface definition for the TCS37727 sensor driver. More...
Interface definition for the TCS37727 sensor driver.
Definition in file tcs37727.h.
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. More... | |
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. More... | |
void | tcs37727_set_rgbc_active (const tcs37727_t *dev) |
Set RGBC enable, this activates periodic RGBC measurements. More... | |
void | tcs37727_set_rgbc_standby (const tcs37727_t *dev) |
Set RGBC disable, this deactivates periodic RGBC measurements. More... | |
void | tcs37727_read (const tcs37727_t *dev, tcs37727_data_t *data) |
Read sensor's data. More... | |