]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rdtech-dps/protocol.h
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / src / hardware / rdtech-dps / protocol.h
index 990addb2af707c3c289556f3f81d49eb30e5dd8c..1170dbf99baabb7d7d8b158f703c8f3e920fa3b1 100644 (file)
@@ -51,8 +51,8 @@ struct rdtech_dps_model {
        enum rdtech_dps_model_type model_type;
        unsigned int id;
        const char *name;
-       struct rdtech_dps_range *ranges;
-       unsigned int n_ranges;
+       const struct rdtech_dps_range *ranges;
+       size_t n_ranges;
 };
 
 struct dev_context {
@@ -65,7 +65,7 @@ struct dev_context {
        gboolean curr_ocp_state;
        gboolean curr_cc_state;
        gboolean curr_out_state;
-       unsigned int curr_range;
+       size_t curr_range;
        gboolean acquisition_started;
 };
 
@@ -93,7 +93,7 @@ struct rdtech_dps_state {
        float voltage_target, current_limit;
        float ovp_threshold, ocp_threshold;
        float voltage, current, power;
-       unsigned int range;
+       size_t range;
 };
 
 enum rdtech_dps_state_context {