]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rdtech-dps/protocol.h
rdtech-dps: Handle different current/voltage digits for the various models.
[libsigrok.git] / src / hardware / rdtech-dps / protocol.h
index feab0990f3026224b538511dc466b6317c5d586b..266ec582580c5854da94fce1a33914ea8fa6c553 100644 (file)
@@ -34,12 +34,16 @@ struct rdtech_dps_model {
        unsigned int max_current;
        unsigned int max_voltage;
        unsigned int max_power;
+       unsigned int current_digits;
+       unsigned int voltage_digits;
 };
 
 struct dev_context {
        const struct rdtech_dps_model *model;
        struct sr_sw_limits limits;
        GMutex rw_mutex;
+       double current_multiplier;
+       double voltage_multiplier;
 };
 
 enum rdtech_dps_register {