X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frdtech-dps%2Fprotocol.h;h=d6619e5301321d109b68e3daa5156697a134e3d4;hb=584269fd2f44daa61497fb2cc9baa10a472577b0;hp=feab0990f3026224b538511dc466b6317c5d586b;hpb=aff2094193c7ed0c040ff69d6e6de9c7f2b9d53e;p=libsigrok.git diff --git a/src/hardware/rdtech-dps/protocol.h b/src/hardware/rdtech-dps/protocol.h index feab0990..d6619e53 100644 --- a/src/hardware/rdtech-dps/protocol.h +++ b/src/hardware/rdtech-dps/protocol.h @@ -34,12 +34,20 @@ 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; + gboolean actual_ovp_state; + gboolean actual_ocp_state; + uint16_t actual_regulation_state; + uint16_t actual_output_state; }; enum rdtech_dps_register {