From b82a17d370a74dc7d4788f343f0ef050490e057f Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Mon, 15 Oct 2012 01:14:04 -0500 Subject: [PATCH] libsigrok.h: Add measured quantity and units used by Radioshack 22-812 The Radioshack 22-812 can measure parameters such as transistor gain, dbm, etc. Add those to libsigrok.h. The SR_UNIT_UNITLESS is for quantities that do not have units. Any ratio or gain are just factors, whic do not have units. Specifically, a transistor's gain, or hFE, is a unitless quantity. Signed-off-by: Alexandru Gagniuc --- libsigrok.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libsigrok.h b/libsigrok.h index 595f1917..da770f44 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -148,6 +148,10 @@ enum { SR_MQ_CONTINUITY, SR_MQ_PULSE_WIDTH, SR_MQ_CONDUCTANCE, + /** For a measurement of electrical power, usually in W, or dBm */ + SR_MQ_POWER, + /** Usually for measuring a transistor's gain, or h_FE*/ + SR_MQ_GAIN, }; /* sr_datafeed_analog.unit values */ @@ -163,7 +167,15 @@ enum { SR_UNIT_PERCENTAGE, SR_UNIT_BOOLEAN, SR_UNIT_SECOND, + /** Unit of conductance, the inverse of resistance */ SR_UNIT_SIEMENS, + /** An absolute measurement of power, in decibels, referenced to + * 1 milliwatt */ + SR_UNIT_DECIBEL_MW, + /** Measurements that intrinsically, do not have units attached, such + * as ratios, gains, etc + * Specifically, a transistor's gain (hFE) is a unitless quantity*/ + SR_UNIT_UNITLESS, }; /** sr_datafeed_analog.flags values */