embedded multimeter

Dependents:   MultiThread

Fork of INA219 by Components

Revision:
1:3ba6b3eb0a5a
Parent:
0:eee9c8ba72ff
--- a/INA219.hpp	Thu Aug 28 10:32:20 2014 +0000
+++ b/INA219.hpp	Wed Mar 30 14:09:41 2016 +0000
@@ -93,7 +93,7 @@
      *  @returns
      *      A value between -32768 and +32768 corresponding to the bus voltage.
      */
-    //int16_t read_bus_voltage_raw();
+    int16_t read_bus_voltage_raw();
     /** Reads the bus voltage and uses it to calculate the actual bus voltage.
      *
      *  @see read_bus_voltage_raw
@@ -101,7 +101,7 @@
      *  @returns
      *      A floating point value corresponding to the voltage of V+ (in V).
      */
-    //float read_bus_voltage();
+    float read_bus_voltage();
 
     /** Sets the calibration register.
      *     
@@ -115,7 +115,7 @@
 
     int i2c_addr;
     int current_divider;
-    int power_divider;
+    float power_divider;
     //...
 
     /** Writes a uint8_t array to the specified I2C register.