31 #ifndef CCS811_PARAM_I2C_DEV
32 #define CCS811_PARAM_I2C_DEV (I2C_DEV(0))
34 #ifndef CCS811_PARAM_I2C_ADDR
35 #define CCS811_PARAM_I2C_ADDR (CCS811_I2C_ADDRESS_1)
37 #ifndef CCS811_PARAM_MODE
38 #define CCS811_PARAM_MODE (CCS811_MODE_1S)
40 #ifndef CCS811_PARAM_RESET_PIN
41 #define CCS811_PARAM_RESET_PIN (GPIO_UNDEF)
43 #ifndef CCS811_PARAM_WAKE_PIN
44 #define CCS811_PARAM_WAKE_PIN (GPIO_UNDEF)
46 #ifndef CCS811_PARAM_INT_PIN
47 #define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 0))
49 #ifndef CCS811_PARAM_INT_MODE
50 #define CCS811_PARAM_INT_MODE (CCS811_INT_NONE)
54 #ifdef MODULE_CCS811_FULL
55 #define CCS811_PARAMS { .i2c_dev = CCS811_PARAM_I2C_DEV, \
56 .i2c_addr = CCS811_PARAM_I2C_ADDR, \
57 .mode = CCS811_PARAM_MODE, \
58 .int_pin = CCS811_PARAM_INT_PIN, \
59 .int_mode = CCS811_PARAM_INT_MODE, \
60 .wake_pin = CCS811_PARAM_WAKE_PIN, \
61 .reset_pin = CCS811_PARAM_RESET_PIN \
64 #define CCS811_PARAMS { .i2c_dev = CCS811_PARAM_I2C_DEV, \
65 .i2c_addr = CCS811_PARAM_I2C_ADDR, \
66 .mode = CCS811_PARAM_MODE, \
67 .wake_pin = CCS811_PARAM_WAKE_PIN, \
68 .reset_pin = CCS811_PARAM_RESET_PIN \
72 #ifndef CCS811_SAUL_INFO
73 #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.