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

Bitfield union for the 16-bit DIAG_ALRT diagnostic flags and alert register (0x0B). More...

#include <sfDevINA2XX.h>

Public Attributes

struct {
   uint16_t   memStat: 1
 Memory checksum status (1 = OK) [bit 0]. More...
 
   uint16_t   cnvrf: 1
 Conversion ready flag [bit 1]. More...
 
   uint16_t   pol: 1
 Power over-limit [bit 2]. More...
 
   uint16_t   busUL: 1
 Bus undervoltage [bit 3]. More...
 
   uint16_t   busOL: 1
 Bus overvoltage [bit 4]. More...
 
   uint16_t   shntUL: 1
 Shunt undervoltage [bit 5]. More...
 
   uint16_t   shntOL: 1
 Shunt overvoltage [bit 6]. More...
 
   uint16_t   tmpOL: 1
 Temperature over-limit [bit 7]. More...
 
   uint16_t   __pad0__: 1
 Reserved [bit 8]. More...
 
   uint16_t   mathOF: 1
 Math overflow [bit 9]. More...
 
   uint16_t   chargeOF: 1
 Charge register overflow (INA228 only) [bit 10]. More...
 
   uint16_t   energyOF: 1
 Energy register overflow (INA228 only) [bit 11]. More...
 
   uint16_t   apol: 1
 Alert polarity (0=active-low, 1=active-high) [bit 12]. More...
 
   uint16_t   slowAlert: 1
 Alert on averaged value [bit 13]. More...
 
   uint16_t   cnvr: 1
 Conversion-ready flag on ALERT pin [bit 14]. More...
 
   uint16_t   alatch: 1
 Alert latch enable [bit 15]. More...
 
}; 
 
uint16_t word
 Raw register value for I2C read/write. More...
 

Detailed Description

Bitfield union for the 16-bit DIAG_ALRT diagnostic flags and alert register (0x0B).

Reading this register clears latched alert flags when ALATCH = 1.

Member Data Documentation

◆ 

struct { ... } sfe_ina2xx_diag_alrt_reg_t::@5

◆ __pad0__

uint16_t sfe_ina2xx_diag_alrt_reg_t::__pad0__

Reserved [bit 8].

◆ alatch

uint16_t sfe_ina2xx_diag_alrt_reg_t::alatch

Alert latch enable [bit 15].

◆ apol

uint16_t sfe_ina2xx_diag_alrt_reg_t::apol

Alert polarity (0=active-low, 1=active-high) [bit 12].

◆ busOL

uint16_t sfe_ina2xx_diag_alrt_reg_t::busOL

Bus overvoltage [bit 4].

◆ busUL

uint16_t sfe_ina2xx_diag_alrt_reg_t::busUL

Bus undervoltage [bit 3].

◆ chargeOF

uint16_t sfe_ina2xx_diag_alrt_reg_t::chargeOF

Charge register overflow (INA228 only) [bit 10].

◆ cnvr

uint16_t sfe_ina2xx_diag_alrt_reg_t::cnvr

Conversion-ready flag on ALERT pin [bit 14].

◆ cnvrf

uint16_t sfe_ina2xx_diag_alrt_reg_t::cnvrf

Conversion ready flag [bit 1].

◆ energyOF

uint16_t sfe_ina2xx_diag_alrt_reg_t::energyOF

Energy register overflow (INA228 only) [bit 11].

◆ mathOF

uint16_t sfe_ina2xx_diag_alrt_reg_t::mathOF

Math overflow [bit 9].

◆ memStat

uint16_t sfe_ina2xx_diag_alrt_reg_t::memStat

Memory checksum status (1 = OK) [bit 0].

◆ pol

uint16_t sfe_ina2xx_diag_alrt_reg_t::pol

Power over-limit [bit 2].

◆ shntOL

uint16_t sfe_ina2xx_diag_alrt_reg_t::shntOL

Shunt overvoltage [bit 6].

◆ shntUL

uint16_t sfe_ina2xx_diag_alrt_reg_t::shntUL

Shunt undervoltage [bit 5].

◆ slowAlert

uint16_t sfe_ina2xx_diag_alrt_reg_t::slowAlert

Alert on averaged value [bit 13].

◆ tmpOL

uint16_t sfe_ina2xx_diag_alrt_reg_t::tmpOL

Temperature over-limit [bit 7].

◆ word

uint16_t sfe_ina2xx_diag_alrt_reg_t::word

Raw register value for I2C read/write.


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