X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhp-3478a%2Fprotocol.h;h=2b394aa5961a00c552dd53acfbdb9ec0d72b5804;hb=aec7d8551d588f9b1af33733a0d642d2eb0e3199;hp=a6318f92c67f39f91f29ca8f296b84e8832ba8d1;hpb=569165c0e44323ce8a4baf1da4d540e8976e9d33;p=libsigrok.git diff --git a/src/hardware/hp-3478a/protocol.h b/src/hardware/hp-3478a/protocol.h index a6318f92..2b394aa5 100644 --- a/src/hardware/hp-3478a/protocol.h +++ b/src/hardware/hp-3478a/protocol.h @@ -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;