]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hp-3478a/protocol.h
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / src / hardware / hp-3478a / protocol.h
index a6318f92c67f39f91f29ca8f296b84e8832ba8d1..2b394aa5961a00c552dd53acfbdb9ec0d72b5804 100644 (file)
@@ -150,8 +150,16 @@ struct dev_context {
        enum sr_mqflag acquisition_mq_flags;
        enum sr_unit measurement_unit;
        int range_exp;
-       uint8_t enc_digits;
-       uint8_t spec_digits;
+       /**
+        * The total number of digits. Rounded up from the resoultion of
+        * the device, so a 5.5 resolution would be 6 digits.
+        */
+       uint8_t digits;
+       /**
+        * The digits used for encoding.digits and spec.spec_digits in
+        * the analog payload.
+        */
+       uint8_t sr_digits;
 
        enum terminal_connector terminal;
        enum trigger_state trigger;