X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Farachnid-labs-re-load-pro%2Fprotocol.h;h=8307053b27b2198d3f6409440b630d01540b4751;hb=cd189a44f87c246fa03d3d6e57cc4b4722c07715;hp=25ceff58d8317f026975730c5351af0891a8f490;hpb=803db07a1af036a5da65581ddbac23b7f84a4388;p=libsigrok.git diff --git a/src/hardware/arachnid-labs-re-load-pro/protocol.h b/src/hardware/arachnid-labs-re-load-pro/protocol.h index 25ceff58..8307053b 100644 --- a/src/hardware/arachnid-labs-re-load-pro/protocol.h +++ b/src/hardware/arachnid-labs-re-load-pro/protocol.h @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef LIBSIGROK_HARDWARE_ARACHNID_LABS_RE_LOAD_PRO_PROTOCOL_H @@ -32,17 +31,16 @@ /** Private, per-device-instance driver context. */ struct dev_context { - uint64_t limit_samples; - uint64_t limit_msec; - uint64_t num_samples; - int64_t starttime; + struct sr_sw_limits limits; uint8_t buf[RELOADPRO_BUFSIZE]; int buflen; gboolean otp_active; + gboolean uvc_active; }; SR_PRIV int reloadpro_set_current_limit(const struct sr_dev_inst *sdi, float current); +SR_PRIV int reloadpro_set_on_off(const struct sr_dev_inst *sdi, gboolean on); SR_PRIV int reloadpro_get_current_limit(const struct sr_dev_inst *sdi, float *current); SR_PRIV int reloadpro_get_voltage_current(const struct sr_dev_inst *sdi,