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_adc_config_reg_t Union Reference

Bitfield union for the 16-bit ADC_CONFIG register (0x01). More...

#include <sfDevINA2XX.h>

Public Attributes

struct {
   uint16_t   avg: 3
 ADC sample averaging count (see sfe_ina2xx_avg_count_t) [bits 2:0]. More...
 
   uint16_t   vtct: 3
 Temperature conversion time (see sfe_ina2xx_conv_time_t) [bits 5:3]. More...
 
   uint16_t   vshct: 3
 Shunt voltage conversion time [bits 8:6]. More...
 
   uint16_t   vbusct: 3
 Bus voltage conversion time [bits 11:9]. More...
 
   uint16_t   mode: 4
 Operating mode (see sfe_ina2xx_mode_t) [bits 15:12]. More...
 
}; 
 
uint16_t word
 Raw register value for I2C read/write. More...
 

Detailed Description

Bitfield union for the 16-bit ADC_CONFIG register (0x01).

Member Data Documentation

◆ 

struct { ... } sfe_ina2xx_adc_config_reg_t::@3

◆ avg

uint16_t sfe_ina2xx_adc_config_reg_t::avg

ADC sample averaging count (see sfe_ina2xx_avg_count_t) [bits 2:0].

◆ mode

uint16_t sfe_ina2xx_adc_config_reg_t::mode

Operating mode (see sfe_ina2xx_mode_t) [bits 15:12].

◆ vbusct

uint16_t sfe_ina2xx_adc_config_reg_t::vbusct

Bus voltage conversion time [bits 11:9].

◆ vshct

uint16_t sfe_ina2xx_adc_config_reg_t::vshct

Shunt voltage conversion time [bits 8:6].

◆ vtct

uint16_t sfe_ina2xx_adc_config_reg_t::vtct

Temperature conversion time (see sfe_ina2xx_conv_time_t) [bits 5:3].

◆ word

uint16_t sfe_ina2xx_adc_config_reg_t::word

Raw register value for I2C read/write.


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