Default configuration for TSL2561. More...

Detailed Description

Default configuration for TSL2561.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file tsl2561_params.h.

#include "board.h"
#include "saul_reg.h"
#include "tsl2561.h"
+ Include dependency graph for tsl2561_params.h:

Go to the source code of this file.

Variables

static const tsl2561_params_t tsl2561_params []
 Configure TSL2561. More...
 
saul_reg_info_t tsl2561_saul_info []
 Allocate and configure entries to the SAUL registry. More...
 

Set default configuration parameters for the TSL2561

#define TSL2561_PARAM_I2C_DEV   I2C_DEV(0)
 
#define TSL2561_PARAM_ADDR   TSL2561_ADDR_FLOAT
 
#define TSL2561_PARAM_GAIN   TSL2561_GAIN_1X
 
#define TSL2561_PARAM_INTEGRATION   TSL2561_INTEGRATIONTIME_402MS
 
#define TSL2561_PARAMS
 
#define TSL2561_SAUL_INFO   { .name= "tsl2561" }
 

Macro Definition Documentation

◆ TSL2561_PARAMS

#define TSL2561_PARAMS
Value:
{ .i2c_dev = TSL2561_PARAM_I2C_DEV, \
.addr = TSL2561_PARAM_ADDR, \
.gain = TSL2561_PARAM_GAIN, \
.integration = TSL2561_PARAM_INTEGRATION }

Definition at line 48 of file tsl2561_params.h.

Variable Documentation

◆ tsl2561_params

const tsl2561_params_t tsl2561_params[]
static
Initial value:
=
{
TSL2561_PARAMS
}

Configure TSL2561.

Definition at line 61 of file tsl2561_params.h.

◆ tsl2561_saul_info

saul_reg_info_t tsl2561_saul_info[]
Initial value:
=
{
TSL2561_SAUL_INFO
}

Allocate and configure entries to the SAUL registry.

Definition at line 69 of file tsl2561_params.h.

TSL2561_PARAM_ADDR
#define TSL2561_PARAM_ADDR
TSL2561 Visible light sensor.
Definition: board.h:159