libsigrok.h: Add SR_MQ_ENERGY

This commit is contained in:
Andreas Sandberg 2020-02-15 12:53:16 +00:00 committed by Uwe Hermann
parent cbfaf5e073
commit 0cc3d090b7
2 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,8 @@ enum sr_mq {
SR_MQ_MASS,
/** Harmonic ratio */
SR_MQ_HARMONIC_RATIO,
/** Energy. */
SR_MQ_ENERGY,
/* Update sr_key_info_mq[] (hwdriver.c) upon changes! */
};

View File

@ -270,6 +270,7 @@ static struct sr_key_info sr_key_info_mq[] = {
{SR_MQ_APPARENT_POWER, 0, "apparent_power", "Apparent power", NULL},
{SR_MQ_MASS, 0, "mass", "Mass", NULL},
{SR_MQ_HARMONIC_RATIO, 0, "harmonic_ratio", "Harmonic ratio", NULL},
{SR_MQ_ENERGY, 0, "energy", "Energy", NULL},
ALL_ZERO
};