Loading...
Searching...
No Matches
sgp30_params.h File Reference

Default configuration. More...

Detailed Description

Default configuration.

Author
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr

Definition in file sgp30_params.h.

#include "board.h"
#include "sgp30.h"
#include "sgp30_constants.h"
#include "saul_reg.h"
+ Include dependency graph for sgp30_params.h:

Go to the source code of this file.

Macros

#define SGP30_NUM   ARRAY_SIZE(sgp30_params)
 Define the number of configured sensors.
 
#define SGP30_INFO_NUM   ARRAY_SIZE(sgp30_saul_info)
 Number of saul info structs.
 

Variables

static const sgp30_params_t sgp30_params []
 SGP30 configuration.
 
static const saul_reg_info_t sgp30_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters

#define SGP30_PARAM_I2C_DEV   (I2C_DEV(0))
 
#define SGP30_PARAMS   { .i2c_dev = SGP30_PARAM_I2C_DEV }
 
#define SGP30_SAUL_INFO   { .name = "sgp30" }
 

Macro Definition Documentation

◆ SGP30_INFO_NUM

#define SGP30_INFO_NUM   ARRAY_SIZE(sgp30_saul_info)

Number of saul info structs.

Definition at line 70 of file sgp30_params.h.

◆ SGP30_NUM

#define SGP30_NUM   ARRAY_SIZE(sgp30_params)

Define the number of configured sensors.

Definition at line 57 of file sgp30_params.h.

◆ SGP30_PARAM_I2C_DEV

#define SGP30_PARAM_I2C_DEV   (I2C_DEV(0))

Definition at line 36 of file sgp30_params.h.

◆ SGP30_PARAMS

#define SGP30_PARAMS   { .i2c_dev = SGP30_PARAM_I2C_DEV }

Definition at line 39 of file sgp30_params.h.

◆ SGP30_SAUL_INFO

#define SGP30_SAUL_INFO   { .name = "sgp30" }

Definition at line 42 of file sgp30_params.h.

Variable Documentation

◆ sgp30_params

const sgp30_params_t sgp30_params[]
static
Initial value:
=
{
SGP30_PARAMS
}

SGP30 configuration.

Definition at line 49 of file sgp30_params.h.

◆ sgp30_saul_info

const saul_reg_info_t sgp30_saul_info[]
static
Initial value:
=
{
SGP30_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 62 of file sgp30_params.h.