17#ifndef CCS811_PARAMS_H
18#define CCS811_PARAMS_H
32#ifndef CCS811_PARAM_I2C_DEV
33#define CCS811_PARAM_I2C_DEV (I2C_DEV(0))
35#ifndef CCS811_PARAM_I2C_ADDR
36#define CCS811_PARAM_I2C_ADDR (CCS811_I2C_ADDRESS_1)
38#ifndef CCS811_PARAM_MODE
39#define CCS811_PARAM_MODE (CCS811_MODE_1S)
41#ifndef CCS811_PARAM_RESET_PIN
42#define CCS811_PARAM_RESET_PIN (GPIO_UNDEF)
44#ifndef CCS811_PARAM_WAKE_PIN
45#define CCS811_PARAM_WAKE_PIN (GPIO_UNDEF)
47#ifndef CCS811_PARAM_INT_PIN
48#define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 0))
50#ifndef CCS811_PARAM_INT_MODE
51#define CCS811_PARAM_INT_MODE (CCS811_INT_NONE)
55#ifdef MODULE_CCS811_FULL
56#define CCS811_PARAMS { .i2c_dev = CCS811_PARAM_I2C_DEV, \
57 .i2c_addr = CCS811_PARAM_I2C_ADDR, \
58 .mode = CCS811_PARAM_MODE, \
59 .int_pin = CCS811_PARAM_INT_PIN, \
60 .int_mode = CCS811_PARAM_INT_MODE, \
61 .wake_pin = CCS811_PARAM_WAKE_PIN, \
62 .reset_pin = CCS811_PARAM_RESET_PIN \
65#define CCS811_PARAMS { .i2c_dev = CCS811_PARAM_I2C_DEV, \
66 .i2c_addr = CCS811_PARAM_I2C_ADDR, \
67 .mode = CCS811_PARAM_MODE, \
68 .wake_pin = CCS811_PARAM_WAKE_PIN, \
69 .reset_pin = CCS811_PARAM_RESET_PIN \
73#ifndef CCS811_SAUL_INFO
74#define CCS811_SAUL_INFO { .name = "ccs811" }
Device Driver for AMS CCS811 digital gas sensor.
static const saul_reg_info_t ccs811_saul_info[]
Additional meta information to keep in the SAUL registry.
static const ccs811_params_t ccs811_params[]
CCS811 configuration.
SAUL registry interface definition.
CCS811 device initialization parameters.
Additional data to collect for each entry.