]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
add energy meter device type and related units
[libsigrok.git] / libsigrok.h
index 67f3197159bcd12129bdfc1903a4887bb9c0a7be..17d7fc17d7a5249dff9d11c585ec95891bb596d9 100644 (file)
@@ -217,6 +217,9 @@ enum {
         */
        SR_UNIT_CONCENTRATION,
        SR_UNIT_REVOLUTIONS_PER_MINUTE,
+       SR_UNIT_VOLT_AMPERE,
+       SR_UNIT_WATT,
+       SR_UNIT_WATT_HOUR,
 };
 
 /** Values for sr_datafeed_analog.flags. */
@@ -583,6 +586,9 @@ enum {
        /** The device can measure humidity. */
        SR_CONF_HYGROMETER,
 
+       /** The device can measure energy consumption. */
+       SR_CONF_ENERGYMETER,
+
        /*--- Driver scan options -------------------------------------------*/
 
        /**