From: Alexandru Gagniuc Date: Mon, 15 Oct 2012 06:14:04 +0000 (-0500) Subject: libsigrok.h: Add measured quantity and units used by Radioshack 22-812 X-Git-Tag: dsupstream~669 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b82a17d370a74dc7d4788f343f0ef050490e057f;p=libsigrok.git 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 --- 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 */