![]() |
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 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... | |
Bitfield union for the 16-bit DIAG_ALRT diagnostic flags and alert register (0x0B).
Reading this register clears latched alert flags when ALATCH = 1.
| struct { ... } sfe_ina2xx_diag_alrt_reg_t::@5 |
| uint16_t sfe_ina2xx_diag_alrt_reg_t::__pad0__ |
Reserved [bit 8].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::alatch |
Alert latch enable [bit 15].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::apol |
Alert polarity (0=active-low, 1=active-high) [bit 12].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::busOL |
Bus overvoltage [bit 4].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::busUL |
Bus undervoltage [bit 3].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::chargeOF |
Charge register overflow (INA228 only) [bit 10].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::cnvr |
Conversion-ready flag on ALERT pin [bit 14].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::cnvrf |
Conversion ready flag [bit 1].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::energyOF |
Energy register overflow (INA228 only) [bit 11].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::mathOF |
Math overflow [bit 9].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::memStat |
Memory checksum status (1 = OK) [bit 0].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::pol |
Power over-limit [bit 2].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::shntOL |
Shunt overvoltage [bit 6].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::shntUL |
Shunt undervoltage [bit 5].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::slowAlert |
Alert on averaged value [bit 13].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::tmpOL |
Temperature over-limit [bit 7].
| uint16_t sfe_ina2xx_diag_alrt_reg_t::word |
Raw register value for I2C read/write.