X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hardware%2Frigol-ds1xx2%2Fprotocol.h;h=34d9e8adf42d57fa6599ce8686e03b4babc613c7;hb=250a78c7d5d049edd8c4f792f9eee56eae773a0b;hp=4026fc162ac63788e209002de76ae43c91e6e0f8;hpb=254dd102e84a6f9e5a62be5172bb94cbca3da4e8;p=libsigrok.git diff --git a/hardware/rigol-ds1xx2/protocol.h b/hardware/rigol-ds1xx2/protocol.h index 4026fc16..34d9e8ad 100644 --- a/hardware/rigol-ds1xx2/protocol.h +++ b/hardware/rigol-ds1xx2/protocol.h @@ -34,17 +34,23 @@ #define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args) #define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args) -#define WAVEFORM_SIZE 600 +#define ANALOG_WAVEFORM_SIZE 600 +#define DIGITAL_WAVEFORM_SIZE 1210 /** Private, per-device-instance driver context. */ struct dev_context { + /* Device features */ + gboolean has_digital; + /* Acquisition settings */ - GSList *enabled_probes; + GSList *enabled_analog_probes; + GSList *enabled_digital_probes; uint64_t limit_frames; void *cb_data; /* Device settings */ - gboolean channels[2]; + gboolean analog_channels[2]; + gboolean digital_channels[16]; float timebase; float vdiv[2]; float vert_offset[2]; @@ -57,7 +63,7 @@ struct dev_context { char *device; int fd; uint64_t num_frames; - uint64_t num_frame_samples; + uint64_t num_frame_bytes; struct sr_probe *channel_frame; };