Skip to content

Commit d707dfd

Browse files
committed
document encoding.digits and spec.spec_digits
1 parent 3d9864c commit d707dfd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/libsigrok/libsigrok.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,9 @@ struct sr_analog_encoding {
508508
gboolean is_signed;
509509
gboolean is_float;
510510
gboolean is_bigendian;
511+
/** Number of significant digits after the decimal point if positive,
512+
* or number of non-significant digits before the decimal point if negative
513+
* (refers to the value we actually read on the wire) */
511514
int8_t digits;
512515
gboolean is_digits_decimal;
513516
struct sr_rational scale;
@@ -522,6 +525,9 @@ struct sr_analog_meaning {
522525
};
523526

524527
struct sr_analog_spec {
528+
/** Number of significant digits after the decimal point if positive,
529+
* or number of non-significant digits before the decimal point if negative
530+
* (refers to vendor specifications/datasheet or actual device display) */
525531
int8_t spec_digits;
526532
};
527533

0 commit comments

Comments
 (0)