]> sigrok.org Git - libsigrok.git/commitdiff
libsigrok.h: Add MQ for electric charge.
authorFrank Stettner <redacted>
Mon, 27 Jul 2020 17:54:06 +0000 (19:54 +0200)
committerGerhard Sittig <redacted>
Sat, 22 Aug 2020 19:53:56 +0000 (21:53 +0200)
include/libsigrok/libsigrok.h
src/hwdriver.c

index 070107eeef294b6d5463bb9c94ae9572ca2f31c4..0b06cb7c7ec71e68a8dd3dd34eea70721651d41f 100644 (file)
@@ -235,6 +235,8 @@ enum sr_mq {
        SR_MQ_HARMONIC_RATIO,
        /** Energy. */
        SR_MQ_ENERGY,
+       /** Electric charge. */
+       SR_MQ_ELECTRIC_CHARGE,
 
        /* Update sr_key_info_mq[] (hwdriver.c) upon changes! */
 };
index 03d268e1397a39f382faeb86935d5e68fb74a046..a24d54d59ef2b1a7a1957b3b7004d37aed49a7ca 100644 (file)
@@ -273,6 +273,7 @@ static struct sr_key_info sr_key_info_mq[] = {
        {SR_MQ_MASS, 0, "mass", "Mass", NULL},
        {SR_MQ_HARMONIC_RATIO, 0, "harmonic_ratio", "Harmonic ratio", NULL},
        {SR_MQ_ENERGY, 0, "energy", "Energy", NULL},
+       {SR_MQ_ELECTRIC_CHARGE, 0, "electric_charge", "Electric charge", NULL},
        ALL_ZERO
 };