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 <mr.nuke.me@gmail.com>
This commit is contained in:
Alexandru Gagniuc 2012-10-15 01:14:04 -05:00 committed by Bert Vermeulen
parent e8e9dcdd70
commit b82a17d370
1 changed files with 12 additions and 0 deletions

View File

@ -148,6 +148,10 @@ enum {
SR_MQ_CONTINUITY, SR_MQ_CONTINUITY,
SR_MQ_PULSE_WIDTH, SR_MQ_PULSE_WIDTH,
SR_MQ_CONDUCTANCE, 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 */ /* sr_datafeed_analog.unit values */
@ -163,7 +167,15 @@ enum {
SR_UNIT_PERCENTAGE, SR_UNIT_PERCENTAGE,
SR_UNIT_BOOLEAN, SR_UNIT_BOOLEAN,
SR_UNIT_SECOND, SR_UNIT_SECOND,
/** Unit of conductance, the inverse of resistance */
SR_UNIT_SIEMENS, 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 */ /** sr_datafeed_analog.flags values */