Add quantity and flag for difference measurements.
Add 'SR_MQ_DIFFERENCE' quantity for reporting relative difference between the current measurement and the reference value. The value of this quantity will normally be reported in percents. Add also the flag 'SR_MQFLAG_REFERENCE' for indicating that the reported value is not the current measurement but the reference value instead.
This commit is contained in:
parent
87d8124577
commit
23601f2c7e
|
@ -219,6 +219,8 @@ enum sr_mq {
|
||||||
SR_MQ_QUALITY_FACTOR,
|
SR_MQ_QUALITY_FACTOR,
|
||||||
/** Phase angle. */
|
/** Phase angle. */
|
||||||
SR_MQ_PHASE_ANGLE,
|
SR_MQ_PHASE_ANGLE,
|
||||||
|
/** Difference from reference value. */
|
||||||
|
SR_MQ_DIFFERENCE,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Unit of measured quantity, sr_datafeed_analog.unit. */
|
/** Unit of measured quantity, sr_datafeed_analog.unit. */
|
||||||
|
@ -336,6 +338,8 @@ enum sr_mqflag {
|
||||||
SR_MQFLAG_DURATION = 0x20000,
|
SR_MQFLAG_DURATION = 0x20000,
|
||||||
/** Device is in "avg" mode, averaging upon each new value. */
|
/** Device is in "avg" mode, averaging upon each new value. */
|
||||||
SR_MQFLAG_AVG = 0x40000,
|
SR_MQFLAG_AVG = 0x40000,
|
||||||
|
/** Reference value shown. */
|
||||||
|
SR_MQFLAG_REFERENCE = 0x80000,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum sr_trigger_matches {
|
enum sr_trigger_matches {
|
||||||
|
|
Loading…
Reference in New Issue