aboutsummaryrefslogtreecommitdiff
path: root/driver_fw/ina226.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-04-15 13:07:11 +0900
committerjaseg <git@jaseg.net>2019-04-15 13:07:11 +0900
commite79f3d4047aaf9beb8a59f1d30d93c78efae0cc5 (patch)
tree89f078dfc7f39b576d362d83f43c12aa620d4197 /driver_fw/ina226.h
parenta8448faccabdcf5ca1fe05760bbbfb78a1c5e917 (diff)
download8seg-e79f3d4047aaf9beb8a59f1d30d93c78efae0cc5.tar.gz
8seg-e79f3d4047aaf9beb8a59f1d30d93c78efae0cc5.tar.bz2
8seg-e79f3d4047aaf9beb8a59f1d30d93c78efae0cc5.zip
driver/fw: Add tiny printf
Diffstat (limited to 'driver_fw/ina226.h')
-rw-r--r--driver_fw/ina226.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_fw/ina226.h b/driver_fw/ina226.h
index 405be48..5314454 100644
--- a/driver_fw/ina226.h
+++ b/driver_fw/ina226.h
@@ -7,6 +7,8 @@
#define INA226_I2C_ADDR 0x80
#define INA226_I_LSB_uA 2000
+#define INA226_VB_LSB_uV 1250
+#define INA226_VS_LSB_nV 2500
#define INA226_RSHUNT_uOhm 2000
/* FIXME validate this */
#define INA226_CAL (5120000 / INA226_I_LSB_uA * 1000 / INA226_RSHUNT_uOhm)