X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsiglent-sds%2Fprotocol.h;h=20d4363a0569501393ed9ce9443629c2a475717f;hb=4fc4b8e7aa63d80bc2d2a032d0126d212d5d46ec;hp=198fa757c510778bb90e92a5e1659bdfb9bddeec;hpb=b33606718cebd776723c18de0a17efbca2d69525;p=libsigrok.git diff --git a/src/hardware/siglent-sds/protocol.h b/src/hardware/siglent-sds/protocol.h index 198fa757..20d4363a 100644 --- a/src/hardware/siglent-sds/protocol.h +++ b/src/hardware/siglent-sds/protocol.h @@ -47,10 +47,6 @@ enum protocol_version { NON_SPO_MODEL, }; -enum data_format { - FORMAT_IEEE488_2, -}; - enum data_source { DATA_SOURCE_SCREEN, DATA_SOURCE_HISTORY, @@ -59,7 +55,6 @@ enum data_source { struct siglent_sds_vendor { const char *name; const char *full_name; - const char *usb_name; }; struct siglent_sds_series { @@ -89,7 +84,6 @@ enum wait_events { WAIT_STOP, /* Wait for scope stopping (only single shots) */ }; -/** Private, per-device-instance driver context. */ struct dev_context { /* Device model */ const struct siglent_sds_model *model; @@ -107,12 +101,14 @@ struct dev_context { /* 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; - long blockHeaderSize; - float sampleRate; + long block_header_size; + float samplerate; /* Device settings */ gboolean analog_channels[MAX_ANALOG_CHANNELS]; @@ -137,17 +133,17 @@ struct dev_context { GSList *channel_entry; /* Number of bytes received for current channel. */ uint64_t num_channel_bytes; - /* Number of bytes of block header read */ + /* Number of bytes of block header read. */ uint64_t num_header_bytes; - /* Number of bytes in current data block, if 0 block header expected */ + /* Number of bytes in current data block, if 0 block header expected. */ uint64_t num_block_bytes; - /* Number of data block bytes already read */ + /* Number of data block bytes already read. */ uint64_t num_block_read; - /* What to wait for in *_receive */ + /* What to wait for in *_receive. */ enum wait_events wait_event; - /* Trigger/block copying/stop waiting status */ + /* Trigger/block copying/stop waiting status. */ int wait_status; - /* Acq buffers used for reading from the scope and sending data to app */ + /* Acq buffers used for reading from the scope and sending data to app. */ unsigned char *buffer; float *data; };