20#ifndef ADCXX1C_PARAMS_H
21#define ADCXX1C_PARAMS_H
39#ifndef ADCXX1C_PARAM_I2C
40#define ADCXX1C_PARAM_I2C (I2C_DEV(0))
44#ifndef ADCXX1C_PARAM_ADDR
45#define ADCXX1C_PARAM_ADDR (ADCXX1C_I2C_ADDRESS)
49#ifndef ADCXX1C_PARAM_BITS
50#define ADCXX1C_PARAM_BITS (ADCXX1C_RES_DEFAULT)
54#ifndef ADCXX1C_PARAM_CYCLE
55#define ADCXX1C_PARAM_CYCLE (ADCXX1C_CYCLE_DISABLED)
59#ifndef ADCXX1C_PARAM_ALERT_PIN
60#define ADCXX1C_PARAM_ALERT_PIN (GPIO_UNDEF)
64#ifndef ADCXX1C_PARAM_LOW_LIMIT
65#define ADCXX1C_PARAM_LOW_LIMIT (0)
69#ifndef ADCXX1C_PARAM_HIGH_LIMIT
70#define ADCXX1C_PARAM_HIGH_LIMIT (0)
74#ifndef ADCXX1C_PARAM_HYSTERESIS
75#define ADCXX1C_PARAM_HYSTERESIS (0)
83#define ADCXX1C_PARAMS { .i2c = ADCXX1C_PARAM_I2C, \
84 .addr = ADCXX1C_PARAM_ADDR, \
85 .bits = ADCXX1C_PARAM_BITS, \
86 .cycle = ADCXX1C_PARAM_CYCLE, \
87 .alert_pin = ADCXX1C_PARAM_ALERT_PIN, \
88 .low_limit = ADCXX1C_PARAM_LOW_LIMIT, \
89 .high_limit = ADCXX1C_PARAM_HIGH_LIMIT, \
90 .hysteresis = ADCXX1C_PARAM_HYSTERESIS }
96#ifndef ADCXX1C_SAUL_INFO
97#define ADCXX1C_SAUL_INFO { .name = "adcxx1c" }
ADCXX1C ADC device driver.
static const saul_reg_info_t adcxx1c_saul_info[]
Additional meta information to keep in the SAUL registry.
#define ADCXX1C_PARAMS
ADCXX1C driver configuration structures.
#define ADCXX1C_SAUL_INFO
ADCXX1C driver SAUL registry information structures.
SAUL registry interface definition.
Additional data to collect for each entry.