libsigrok
unreleased development snapshot
sigrok hardware access and backend library
|
#include <libsigrok.h>
Data Fields | |
uint8_t | unitsize |
gboolean | is_signed |
gboolean | is_float |
gboolean | is_bigendian |
int8_t | digits |
Number of significant digits after the decimal point, if positive. More... | |
gboolean | is_digits_decimal |
struct sr_rational | scale |
struct sr_rational | offset |
Definition at line 526 of file libsigrok.h.
int8_t sr_analog_encoding::digits |
Number of significant digits after the decimal point, if positive.
When negative, exponent with reversed polarity that is necessary to express the value with all digits without a decimal point. Refers to the value we actually read on the wire.
Examples:
Disp. value | Exp. notation | Exp. not. normalized | digits |
---|---|---|---|
12.34 MOhm | 1.234 * 10^7 Ohm | 1234 * 10^4 Ohm | -4 |
1.2345 MOhm | 1.2345 * 10^6 Ohm | 12345 * 10^2 Ohm | -2 |
123.4 kOhm | 1.234 * 10^5 Ohm | 1234 * 10^2 Ohm | -2 |
1234 Ohm | 1.234 * 10^3 Ohm | 1234 * 10^0 Ohm | 0 |
12.34 Ohm | 1.234 * 10^1 Ohm | 1234 * 10^-2 Ohm | 2 |
0.0123 Ohm | 1.23 * 10^-2 Ohm | 123 * 10^-4 Ohm | 4 |
1.234 pF | 1.234 * 10^-12 F | 1234 * 10^-15 F | 15 |
Definition at line 549 of file libsigrok.h.
gboolean sr_analog_encoding::is_bigendian |
Definition at line 530 of file libsigrok.h.
Referenced by sr_analog_to_float().
gboolean sr_analog_encoding::is_digits_decimal |
Definition at line 550 of file libsigrok.h.
gboolean sr_analog_encoding::is_float |
Definition at line 529 of file libsigrok.h.
Referenced by sr_a2l_schmitt_trigger(), sr_a2l_threshold(), and sr_analog_to_float().
gboolean sr_analog_encoding::is_signed |
Definition at line 528 of file libsigrok.h.
Referenced by sr_analog_to_float().
struct sr_rational sr_analog_encoding::offset |
Definition at line 552 of file libsigrok.h.
Referenced by sr_analog_to_float().
struct sr_rational sr_analog_encoding::scale |
Definition at line 551 of file libsigrok.h.
Referenced by sr_analog_to_float().
uint8_t sr_analog_encoding::unitsize |
Definition at line 527 of file libsigrok.h.
Referenced by sr_analog_to_float(), and sr_packet_copy().