#include <stdint.h>
#include <stdbool.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
#define LOG_PREFIX "rigol-ds"
/* Size of acquisition buffers */
-#define ACQ_BUFFER_SIZE 32768
+#define ACQ_BUFFER_SIZE (32 * 1024)
+
+/* Maximum number of samples to retrieve at once. */
+#define ACQ_BLOCK_SIZE (30 * 1000)
#define MAX_ANALOG_CHANNELS 4
#define MAX_DIGITAL_CHANNELS 16
PROTOCOL_V1, /* VS5000 */
PROTOCOL_V2, /* DS1000 */
PROTOCOL_V3, /* DS2000, DSO1000 */
+ PROTOCOL_V4, /* DS1000Z */
};
enum data_format {
struct sr_channel_group *digital_group;
/* Acquisition settings */
- GSList *enabled_analog_channels;
- GSList *enabled_digital_channels;
+ GSList *enabled_channels;
uint64_t limit_frames;
- void *cb_data;
enum data_source data_source;
uint64_t analog_frame_size;
uint64_t digital_frame_size;