![]() |
SparkFun INA2XX Arduino Library
v1.0.0-3-gc9007d6
Arduino Library for the SparkFun Qwiic Power Monitor (INA228 / INA237)
|
Bitfield union for the 16-bit CONFIG register (0x00). More...
#include <sfDevINA2XX.h>
Public Attributes | |
| struct { | |
| uint16_t __pad0__: 4 | |
| Reserved [bits 3:0]. More... | |
| uint16_t adcRange: 1 | |
| ADC range: 0 = +/-163.84mV, 1 = +/-40.96mV [bit 4]. More... | |
| uint16_t tempComp: 1 | |
| Shunt temperature compensation enable [bit 5]. More... | |
| uint16_t convDly: 8 | |
| Initial conversion delay, 2ms steps [bits 13:6]. More... | |
| uint16_t rstAcc: 1 | |
| Reset ENERGY/CHARGE accumulators (INA228) [bit 14]. More... | |
| uint16_t rst: 1 | |
| System reset (self-clearing) [bit 15]. More... | |
| }; | |
| uint16_t | word |
| Raw register value for I2C read/write. More... | |
Bitfield union for the 16-bit CONFIG register (0x00).
| struct { ... } sfe_ina2xx_config_reg_t::@1 |
| uint16_t sfe_ina2xx_config_reg_t::__pad0__ |
Reserved [bits 3:0].
| uint16_t sfe_ina2xx_config_reg_t::adcRange |
ADC range: 0 = +/-163.84mV, 1 = +/-40.96mV [bit 4].
| uint16_t sfe_ina2xx_config_reg_t::convDly |
Initial conversion delay, 2ms steps [bits 13:6].
| uint16_t sfe_ina2xx_config_reg_t::rst |
System reset (self-clearing) [bit 15].
| uint16_t sfe_ina2xx_config_reg_t::rstAcc |
Reset ENERGY/CHARGE accumulators (INA228) [bit 14].
| uint16_t sfe_ina2xx_config_reg_t::tempComp |
Shunt temperature compensation enable [bit 5].
| uint16_t sfe_ina2xx_config_reg_t::word |
Raw register value for I2C read/write.