The friendly Operating System for the Internet of Things

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

Detailed Description

#include <stdint.h>
#include "saul.h"
#include "periph/i2c.h"
+ Include dependency graph for 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 TCS37727_ATIME_DEFAULT   200000
 Default RGBC integration time.
 

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 (tcs37727_t *dev)
 Set RGBC enable, this activates periodic RGBC measurements. More...
 
void tcs37727_set_rgbc_standby (tcs37727_t *dev)
 Set RGBC disable, this deactivates periodic RGBC measurements. More...
 
void tcs37727_read (tcs37727_t *dev, tcs37727_data_t *data)
 Read sensor's data. More...
 

Variables

const saul_driver_t tcs37727_saul_driver
 Export the sensor's SAUL interface.