]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
libsigrok.h: Add SR_MQ_POWER_FACTOR and SR_MQ_APPARENT_POWER.
[libsigrok.git] / include / libsigrok / libsigrok.h
index 662e986e56df88995d73a65401823ab588ea4701..7f37d4de6317fc198eee1555fa624150463b22b1 100644 (file)
@@ -226,6 +226,10 @@ enum sr_mq {
        SR_MQ_DIFFERENCE,
        /** Count. */
        SR_MQ_COUNT,
+       /** Power factor. */
+       SR_MQ_POWER_FACTOR,
+       /** Apparent power */
+       SR_MQ_APPARENT_POWER,
 };
 
 /** Unit of measured quantity, sr_datafeed_analog.unit. */
@@ -531,6 +535,8 @@ enum sr_channeltype {
 
 /** Information on single channel. */
 struct sr_channel {
+       /** The device this channel is attached to. */
+       struct sr_dev_inst *sdi;
        /** The index of this channel, starting at 0. Logic channels will
         * be encoded according to this index in SR_DF_LOGIC packets. */
        int index;