X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frdtech-dps%2Fprotocol.h;h=1170dbf99baabb7d7d8b158f703c8f3e920fa3b1;hb=HEAD;hp=990addb2af707c3c289556f3f81d49eb30e5dd8c;hpb=5352598f01b9fc02cd16be9813a68677527a8873;p=libsigrok.git diff --git a/src/hardware/rdtech-dps/protocol.h b/src/hardware/rdtech-dps/protocol.h index 990addb2..1170dbf9 100644 --- a/src/hardware/rdtech-dps/protocol.h +++ b/src/hardware/rdtech-dps/protocol.h @@ -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 {