]> sigrok.org Git - libsigrok.git/blobdiff - hardware/manson-hcs-3xxx/protocol.h
manson-hcs-3xxx: Use maximum voltage and current read from device.
[libsigrok.git] / hardware / manson-hcs-3xxx / protocol.h
index f5cd77f89a5211472645bc2331e3d27508d3d147..b4441d070658d65f23187a6556492bb2703be536 100644 (file)
@@ -78,9 +78,11 @@ struct dev_context {
        void *cb_data;
 
        float current;          /**< Last current value [A] read from device. */
-       float current_max;      /**< Output current set */
+       float current_max;      /**< Output current set. */
+       float current_max_device;/**< Device-provided maximum output current. */
        float voltage;          /**< Last voltage value [V] read from device. */
-       float voltage_max;      /**< Output voltage set */
+       float voltage_max;      /**< Output voltage set. */
+       float voltage_max_device;/**< Device-provided maximum output voltage. */
        gboolean cc_mode;       /**< Device is in constant current mode (otherwise constant voltage). */
 
        gboolean output_enabled; /**< Is the output enabled? */