X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fhameg-hmo%2Fprotocol.h;h=037b2426fcda6829e92d552c2df06e3865dbbdf9;hb=373e92a491c0dbcbcdc555e11f405b2208d99259;hp=3747d62b0b36f6e02e1290d6f0f4583ad9143fd0;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/hardware/hameg-hmo/protocol.h b/src/hardware/hameg-hmo/protocol.h index 3747d62b..037b2426 100644 --- a/src/hardware/hameg-hmo/protocol.h +++ b/src/hardware/hameg-hmo/protocol.h @@ -29,7 +29,10 @@ #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]; @@ -43,8 +46,8 @@ struct scope_config { const uint32_t (*devopts)[]; const uint8_t num_devopts; - const uint32_t (*analog_devopts)[]; - const uint8_t num_analog_devopts; + const uint32_t (*devopts_cg_analog)[]; + const uint8_t num_devopts_cg_analog; const char *(*coupling_options)[]; const uint8_t num_coupling_options; @@ -73,6 +76,7 @@ struct analog_channel_state { float vertical_offset; gboolean state; + char probe_unit; }; struct scope_state { @@ -88,7 +92,6 @@ struct scope_state { uint64_t sample_rate; }; -/** Private, per-device-instance driver context. */ struct dev_context { const void *model_config; void *model_state; @@ -101,6 +104,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);