X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Frigol-dg%2Fprotocol.h;h=5d1227d0b772ff224619a640faf2882ca3713b27;hp=bff7c2089e339dde067d5a51b0331f27f57e2289;hb=b1eb94bbef0312005f879b7525b11b8c7049aca1;hpb=92cd85149a2497e6eecd8f35e43893b905dc2faa diff --git a/src/hardware/rigol-dg/protocol.h b/src/hardware/rigol-dg/protocol.h index bff7c208..5d1227d0 100644 --- a/src/hardware/rigol-dg/protocol.h +++ b/src/hardware/rigol-dg/protocol.h @@ -27,6 +27,12 @@ #define LOG_PREFIX "rigol-dg" +/* Device/firmware specific quirks. */ +#define RIGOL_DG_COUNTER_BUG (1UL << 0) +#define RIGOL_DG_COUNTER_CH2_CONFLICT (1UL << 1) + +#define RIGOL_DG_COUNTER_BUG_DELAY (1000 * 1000) + enum psg_commands { PSG_CMD_SETUP_REMOTE, PSG_CMD_SETUP_LOCAL, @@ -115,6 +121,7 @@ struct dev_context { struct channel_status *ch_status; struct sr_sw_limits limits; gboolean counter_enabled; + uint32_t quirks; }; SR_PRIV const char *rigol_dg_waveform_to_string(enum waveform_type type);