libsigrok.h: Add MQ for electric charge.

This commit is contained in:
Frank Stettner 2020-07-27 19:54:06 +02:00 committed by Gerhard Sittig
parent f5247d953f
commit 82ff704449
2 changed files with 3 additions and 0 deletions

View 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! */
};

View 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
};