]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/arachnid-labs-re-load-pro/protocol.h
Add sr_dev_acquisition_stop(), factor out SR_ERR_DEV_CLOSED check.
[libsigrok.git] / src / hardware / arachnid-labs-re-load-pro / protocol.h
index 25ceff58d8317f026975730c5351af0891a8f490..8307053b27b2198d3f6409440b630d01540b4751 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
  */
 
 #ifndef LIBSIGROK_HARDWARE_ARACHNID_LABS_RE_LOAD_PRO_PROTOCOL_H
 
 /** 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,