]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/protocol.h
hameg-hmo: Rephrase the channel constraints check (analog vs digital)
[libsigrok.git] / src / hardware / hameg-hmo / protocol.h
index c42aa98a6a8fc3a3fcd130c57b0073f4c4d06ed1..ccdcb90cf3d3fe4b4ddce0e8280c387c46502159 100644 (file)
 #define LOG_PREFIX "hameg-hmo"
 
 #define MAX_INSTRUMENT_VERSIONS 10
-#define MAX_COMMAND_SIZE 31
+#define MAX_COMMAND_SIZE 48
+#define MAX_ANALOG_CHANNEL_COUNT 4
+#define MAX_DIGITAL_CHANNEL_COUNT 16
+#define MAX_DIGITAL_GROUP_COUNT        2
 
 struct scope_config {
        const char *name[MAX_INSTRUMENT_VERSIONS];
@@ -87,9 +90,6 @@ struct scope_state {
        int trigger_source;
        int trigger_slope;
        uint64_t sample_rate;
-
-       /** SCPI data block byte order. 'l'/'b' when known, '?' otherwise. */
-       char byteorder;
 };
 
 /** Private, per-device-instance driver context. */
@@ -105,6 +105,9 @@ struct dev_context {
        uint64_t num_frames;
 
        uint64_t frame_limit;
+
+       size_t pod_count;
+       GByteArray *logic_data;
 };
 
 SR_PRIV int hmo_init_device(struct sr_dev_inst *sdi);