X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frigol-ds%2Fprotocol.h;h=e2efffa227bd0c9f254b0505fd739f6543551354;hb=713a3f352496f928b9911bfdc7e87a67134113df;hp=86669b40de0ebbb6e5727d86340e136b4ad35604;hpb=0f523f2b45e84114add85cec5a97aed3f85f95e6;p=libsigrok.git diff --git a/src/hardware/rigol-ds/protocol.h b/src/hardware/rigol-ds/protocol.h index 86669b40..e2efffa2 100644 --- a/src/hardware/rigol-ds/protocol.h +++ b/src/hardware/rigol-ds/protocol.h @@ -42,6 +42,7 @@ enum protocol_version { PROTOCOL_V2, /* DS1000 */ PROTOCOL_V3, /* DS2000, DSO1000 */ PROTOCOL_V4, /* DS1000Z */ + PROTOCOL_V5, /* MSO5000 */ }; enum data_format { @@ -128,6 +129,7 @@ struct dev_context { gboolean digital_channels[MAX_DIGITAL_CHANNELS]; gboolean la_enabled; float timebase; + float sample_rate; float attenuation[MAX_ANALOG_CHANNELS]; float vdiv[MAX_ANALOG_CHANNELS]; int vert_reference[MAX_ANALOG_CHANNELS]; @@ -142,6 +144,8 @@ struct dev_context { /* Number of frames received in total. */ uint64_t num_frames; + /* Number of frames available from the Segmented data source */ + uint64_t num_frames_segmented; /* GSList entry for the current channel. */ GSList *channel_entry; /* Number of bytes received for current channel. */