]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
libsigrok.h: Add measured quantity and units used by Radioshack 22-812
[libsigrok.git] / libsigrok.h
index 595f19171194db950a745465c2e2d4cb7f1f1f8b..da770f44254d6180cba662a817fc4789aceb1bf2 100644 (file)
@@ -148,6 +148,10 @@ enum {
        SR_MQ_CONTINUITY,
        SR_MQ_PULSE_WIDTH,
        SR_MQ_CONDUCTANCE,
+       /** For a measurement of electrical power, usually in W, or dBm */
+       SR_MQ_POWER,
+       /** Usually for measuring a transistor's gain, or h_FE*/
+       SR_MQ_GAIN,
 };
 
 /* sr_datafeed_analog.unit values */
@@ -163,7 +167,15 @@ enum {
        SR_UNIT_PERCENTAGE,
        SR_UNIT_BOOLEAN,
        SR_UNIT_SECOND,
+       /** Unit of conductance, the inverse of resistance */
        SR_UNIT_SIEMENS,
+       /** An absolute measurement of power, in decibels, referenced to
+        * 1 milliwatt */
+       SR_UNIT_DECIBEL_MW,
+       /** Measurements that intrinsically, do not have units attached, such
+        * as ratios, gains, etc
+        * Specifically, a transistor's gain (hFE) is a unitless quantity*/
+       SR_UNIT_UNITLESS,
 };
 
 /** sr_datafeed_analog.flags values */