]> sigrok.org Git - libsigrok.git/blobdiff - hardware/kecheng-kc-330b/protocol.h
kecheng-kc-330b: Check device status before acquisition
[libsigrok.git] / hardware / kecheng-kc-330b / protocol.h
index 1ec64e3ed63ed682b38503809e02cdd085829e59..f872676e314ee40f5016846ee18524272103e1d5 100644 (file)
@@ -55,6 +55,7 @@ enum {
        CMD_CONFIGURE = 0x01,
        CMD_IDENTIFY = 0x02,
        CMD_SET_DATE_TIME = 0x03,
+       CMD_GET_STATUS = 0x04,
        CMD_GET_LIVE_SPL = 0x08,
 };
 
@@ -63,6 +64,11 @@ enum {
        DATA_SOURCE_MEMORY,
 };
 
+enum {
+       DEVICE_ACTIVE,
+       DEVICE_INACTIVE,
+};
+
 /** Private, per-device-instance driver context. */
 struct dev_context {
        /* Acquisition settings */
@@ -92,5 +98,7 @@ SR_PRIV int kecheng_kc_330b_configure(const struct sr_dev_inst *sdi);
 SR_PRIV int kecheng_kc_330b_set_date_time(struct sr_dev_inst *sdi);
 SR_PRIV int kecheng_kc_330b_recording_get(const struct sr_dev_inst *sdi,
                gboolean *tmp);
+SR_PRIV int kecheng_kc_330b_status_get(const struct sr_dev_inst *sdi,
+               int *status);
 
 #endif