RIGOL_DS4000,
RIGOL_DS6000,
RIGOL_VS5000,
+ AGILENT_DSO1000,
};
enum rigol_protocol_flavor {
};
struct rigol_ds_model {
+ char *vendor;
char *name;
enum rigol_ds_series series;
enum rigol_protocol_flavor protocol;
char *coupling[2];
/* Operational state */
+
+ /* Number of frames received in total. */
uint64_t num_frames;
- /* FIXME: misnomer, actually this is number of frame samples? */
- uint64_t num_frame_bytes;
- struct sr_probe *channel_frame;
+ /* The channel we are currently receiving data for. */
+ struct sr_probe *channel;
+ /* Number of samples received in current frame. */
+ uint64_t num_frame_samples;
/* Number of bytes in current data block, if 0 block header expected */
uint64_t num_block_bytes;
/* Number of data block bytes already read */
};
SR_PRIV int rigol_ds_capture_start(const struct sr_dev_inst *sdi);
+SR_PRIV int rigol_ds_channel_start(const struct sr_dev_inst *sdi);
SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data);
SR_PRIV int rigol_ds_get_dev_cfg(const struct sr_dev_inst *sdi);