+ /* Device model */
+ const struct siglent_sds_model *model;
+
+ /* Device properties */
+ const uint64_t (*timebases)[2];
+ uint64_t num_timebases;
+ const uint64_t (*vdivs)[2];
+ uint64_t num_vdivs;
+
+ /* Channel groups */
+ struct sr_channel_group **analog_groups;
+ struct sr_channel_group *digital_group;
+
+ /* Acquisition settings */
+ GSList *enabled_channels;
+ uint64_t limit_frames;
+ uint64_t average_samples;
+ gboolean average_enabled;
+ enum data_source data_source;
+ uint64_t analog_frame_size;
+ uint64_t digital_frame_size;
+ uint64_t num_samples;
+ uint64_t memory_depth_analog;
+ uint64_t memory_depth_digital;
+ long block_header_size;
+ float samplerate;
+
+ /* Device settings */
+ gboolean analog_channels[MAX_ANALOG_CHANNELS];
+ gboolean digital_channels[MAX_DIGITAL_CHANNELS];
+ gboolean la_enabled;
+ float timebase;
+ float attenuation[MAX_ANALOG_CHANNELS];
+ float vdiv[MAX_ANALOG_CHANNELS];
+ int vert_reference[MAX_ANALOG_CHANNELS];
+ float vert_offset[MAX_ANALOG_CHANNELS];
+ char *trigger_source;
+ float horiz_triggerpos;
+ char *trigger_slope;
+ float trigger_level;
+ char *coupling[MAX_ANALOG_CHANNELS];
+
+ /* Operational state */
+
+ /* Number of frames received in total. */
+ uint64_t num_frames;
+ /* GSList entry for the current channel. */
+ GSList *channel_entry;
+ /* Number of bytes received for current channel. */
+ uint64_t num_channel_bytes;
+ /* Number of bytes of block header read. */
+ uint64_t num_header_bytes;
+ /* Number of data blocks bytes already read. */
+ uint64_t num_block_bytes;
+ /* Number of data blocks read. */
+ int num_block_read;
+ /* What to wait for in *_receive. */
+ enum wait_events wait_event;
+ /* Trigger/block copying/stop waiting status. */
+ int wait_status;
+ /* Acq buffers used for reading from the scope and sending data to app. */
+ unsigned char *buffer;
+ float *data;
+ GArray *dig_buffer;