Default configuration for INA2xx power/current monitors. More...
Default configuration for INA2xx power/current monitors.
Definition in file ina2xx_params.h.
Go to the source code of this file.
Variables | |
static const ina2xx_params_t | ina2xx_params [] |
Configure INA2XX devices. More... | |
static const saul_reg_info_t | ina2xx_saul_info [] |
Allocate and configure entries to the SAUL registry. More... | |
Set default configuration parameters for the INA2XX | |
#define | INA2XX_PARAM_I2C (I2C_DEV(0)) |
Default to first I2C device. | |
#define | INA2XX_PARAM_ADDR (0x40) |
Default to address 0x40, which is active if A0 and A1 are connected to GND. More... | |
#define | INA2XX_PARAM_CONFIG |
Default to an optimal configuration for current/power measurements of USB high-power devices using the popular INA219 break out board with 128 samples averaged. More... | |
#define | INA2XX_PARAM_RSHUNT_MOHM (100) |
Default to 100 mΩ as shunt resistor. More... | |
#define | INA2XX_PARAM_I_RANGE (INA2XX_CURRENT_RANGE_655_MA) |
Default to a current range of ±655.36mA. More... | |
#define | INA2XX_PARAMS |
Set default SAUL info for the INA2XX | |
#define | INA2XX_SAULINFO |
#define INA2XX_PARAM_ADDR (0x40) |
Default to address 0x40, which is active if A0 and A1 are connected to GND.
On the popular INA219 breakout board this is the default address if solder jumpers remain open.
Definition at line 48 of file ina2xx_params.h.
#define INA2XX_PARAM_CONFIG |
Default to an optimal configuration for current/power measurements of USB high-power devices using the popular INA219 break out board with 128 samples averaged.
Setting | Value |
---|---|
Mode | Continuous shunt and bus voltage measurements |
Shunt ADC Setting | 128 Samples, 68.10 ms per conversion |
Bus ADC Setting | 128 Samples, 68.10 ms per conversion |
Shunt Voltage Range | ±80mV |
Bus Voltage Range | 16V |
Definition at line 64 of file ina2xx_params.h.
#define INA2XX_PARAM_I_RANGE (INA2XX_CURRENT_RANGE_655_MA) |
Default to a current range of ±655.36mA.
This is the highest resolution suitable to measure USB high-power devices (up to 500 mA).
Definition at line 85 of file ina2xx_params.h.
#define INA2XX_PARAM_RSHUNT_MOHM (100) |
Default to 100 mΩ as shunt resistor.
This is the value used in the popular INA219 breakout board.
Definition at line 76 of file ina2xx_params.h.
#define INA2XX_PARAMS |
Definition at line 88 of file ina2xx_params.h.
#define INA2XX_SAULINFO |
Definition at line 101 of file ina2xx_params.h.
|
static |
Configure INA2XX devices.
Definition at line 110 of file ina2xx_params.h.
|
static |
Allocate and configure entries to the SAUL registry.
Definition at line 118 of file ina2xx_params.h.