X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fasix-sigma%2Fprotocol.h;h=9f3208586c078088b7c5051c40e8eba386e203c0;hb=4fdedbbb3a5f0caf2765bade0d109b6f917f5f41;hp=d654e6091ba0ffed5ed183a270c06a30b6841147;hpb=3ba56876b4a5469b0c39a6f162f517ce8610b9e4;p=libsigrok.git diff --git a/src/hardware/asix-sigma/protocol.h b/src/hardware/asix-sigma/protocol.h index d654e609..9f320858 100644 --- a/src/hardware/asix-sigma/protocol.h +++ b/src/hardware/asix-sigma/protocol.h @@ -23,6 +23,7 @@ #define LIBSIGROK_HARDWARE_ASIX_SIGMA_PROTOCOL_H #include +#include #include #include #include @@ -209,6 +210,7 @@ struct dev_context { uint64_t cur_samplerate; uint64_t period_ps; uint64_t limit_msec; + uint64_t limit_samples; struct timeval start_tv; int cur_firmware; int num_channels; @@ -218,11 +220,10 @@ struct dev_context { struct sigma_trigger trigger; int use_triggers; struct sigma_state state; - void *cb_data; }; extern SR_PRIV const uint64_t samplerates[]; -extern SR_PRIV const int SAMPLERATES_COUNT; +extern SR_PRIV const size_t samplerates_count; SR_PRIV int sigma_write_register(uint8_t reg, uint8_t *data, size_t len, struct dev_context *devc);