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

Header file for the SparkFun INA237 power monitor driver. More...

#include "sfDevINA2XX.h"

Go to the source code of this file.

Classes

class  sfDevINA237
 INA237 power monitor driver (also covers the register-compatible INA238). More...
 

Detailed Description

Header file for the SparkFun INA237 power monitor driver.

sfDevINA237 extends sfDevINA2XX with INA237-specific measurement capabilities:

  • 16-bit ADC with 16-bit measurement registers (VSHUNT, VBUS, CURRENT)
  • 24-bit POWER register
  • No energy or charge accumulation (registers 0x09/0x0A do not exist)
  • Lower-precision LSB scaling (5 uV shunt, 3.125 mV bus, 125 m-deg-C temp)
  • Calibration using scale constant 819.2 x 10^6

The measurement bodies themselves live once in sfDevINA2XX as individually templated/parameterized helpers; the methods below are thin forwarders that pass the INA237 types and constants. Like the base class, every method returns a SparkFun Toolkit error code; measured values are returned through reference (output) parameters.

Author
SparkFun Electronics
Date
June 2026

SPDX-License-Identifier: MIT

See also
https://github.com/sparkfun/SparkFun_INA2XX_Arduino_Library