SparkFun INA2XX Arduino Library  v1.0.0-3-gc9007d6
Arduino Library for the SparkFun Qwiic Power Monitor (INA228 / INA237)
Loading...
Searching...
No Matches
sfe_ina2xx_config_reg_t Union Reference

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...
 

Detailed Description

Bitfield union for the 16-bit CONFIG register (0x00).

Member Data Documentation

◆ 

struct { ... } sfe_ina2xx_config_reg_t::@1

◆ __pad0__

uint16_t sfe_ina2xx_config_reg_t::__pad0__

Reserved [bits 3:0].

◆ adcRange

uint16_t sfe_ina2xx_config_reg_t::adcRange

ADC range: 0 = +/-163.84mV, 1 = +/-40.96mV [bit 4].

◆ convDly

uint16_t sfe_ina2xx_config_reg_t::convDly

Initial conversion delay, 2ms steps [bits 13:6].

◆ rst

uint16_t sfe_ina2xx_config_reg_t::rst

System reset (self-clearing) [bit 15].

◆ rstAcc

uint16_t sfe_ina2xx_config_reg_t::rstAcc

Reset ENERGY/CHARGE accumulators (INA228) [bit 14].

◆ tempComp

uint16_t sfe_ina2xx_config_reg_t::tempComp

Shunt temperature compensation enable [bit 5].

◆ word

uint16_t sfe_ina2xx_config_reg_t::word

Raw register value for I2C read/write.


The documentation for this union was generated from the following file: