19#ifndef INA2XX_PARAMS_H
20#define INA2XX_PARAMS_H
34#ifndef INA2XX_PARAM_I2C
38#define INA2XX_PARAM_I2C (I2C_DEV(0))
40#ifndef INA2XX_PARAM_ADDR
48#define INA2XX_PARAM_ADDR (0x40)
50#ifndef INA2XX_PARAM_CONFIG
64#define INA2XX_PARAM_CONFIG (INA2XX_MODE_CONTINUOUS_SHUNT_BUS | \
65 INA2XX_SADC_AVG_128_SAMPLES | \
66 INA2XX_BADC_AVG_128_SAMPLES | \
67 INA2XX_SHUNT_RANGE_80MV | \
70#ifndef INA2XX_PARAM_RSHUNT_MOHM
76#define INA2XX_PARAM_RSHUNT_MOHM (100)
78#ifndef INA2XX_PARAM_I_RANGE
85#define INA2XX_PARAM_I_RANGE (INA2XX_CURRENT_RANGE_655_MA)
88#define INA2XX_PARAMS { .i2c = INA2XX_PARAM_I2C, \
89 .addr = INA2XX_PARAM_ADDR, \
90 .config = INA2XX_PARAM_CONFIG, \
91 .rshunt_mohm = INA2XX_PARAM_RSHUNT_MOHM, \
92 .i_range = INA2XX_PARAM_I_RANGE }
100#ifndef INA2XX_SAULINFO
101#define INA2XX_SAULINFO { .name = "INA2XX current" }, \
102 { .name = "INA2XX power" }, \
103 { .name = "INA2XX voltage" }
Device driver interface for Texas Instruments INA219/INA2XX Bi-Directional CURRENT/POWER MONITOR with...
static const saul_reg_info_t ina2xx_saul_info[]
Allocate and configure entries to the SAUL registry.
static const ina2xx_params_t ina2xx_params[]
Configure INA2XX devices.
SAUL registry interface definition.
Configuration parameters of the INA2xx driver.
Additional data to collect for each entry.