21#ifndef ADS101X_PARAMS_H
22#define ADS101X_PARAMS_H
37#ifndef ADS101X_PARAM_I2C
38#define ADS101X_PARAM_I2C (I2C_DEV(0))
40#ifndef ADS101X_PARAM_ADDR
41#define ADS101X_PARAM_ADDR (CONFIG_ADS101X_I2C_ADDRESS)
43#ifndef ADS101X_PARAM_MUX_GAIN
44#define ADS101X_PARAM_MUX_GAIN (ADS101X_AIN0_DIFFM_AIN1 \
45 | ADS101X_PGA_FSR_2V048)
47#ifndef ADS101X_PARAM_ALERT_PIN
48#define ADS101X_PARAM_ALERT_PIN (GPIO_UNDEF)
50#ifndef ADS101X_PARAM_LOW_LIMIT
51#define ADS101X_PARAM_LOW_LIMIT (10000U)
53#ifndef ADS101X_PARAM_HIGH_LIMIT
54#define ADS101X_PARAM_HIGH_LIMIT (20000U)
58#define ADS101X_PARAMS { .i2c = ADS101X_PARAM_I2C, \
59 .addr = ADS101X_PARAM_ADDR, \
60 .mux_gain = ADS101X_PARAM_MUX_GAIN }
63#ifndef ADS101X_ALERT_PARAMS
64#define ADS101X_ALERT_PARAMS { .i2c = ADS101X_PARAM_I2C, \
65 .addr = ADS101X_PARAM_ADDR, \
66 .alert_pin = ADS101X_PARAM_ALERT_PIN, \
67 .low_limit = ADS101X_PARAM_LOW_LIMIT, \
68 .high_limit = ADS101X_PARAM_HIGH_LIMIT }
70#ifndef ADS101X_SAUL_INFO
71#define ADS101X_SAUL_INFO { .name = "ads101x" }
ADS101x/111x ADC device driver.
static const saul_reg_info_t ads101x_saul_info[]
Additional meta information to keep in the SAUL registry.
Register definition for ADS101x/111x devices.
SAUL registry interface definition.
ADS101x/111x alert params.
Additional data to collect for each entry.