X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fprotocol.h;h=b9e16e9c869d9f3cd8692e983a9b7aba002fdb9f;hb=21d464a7e53efc9ac9810d9301a12b6a56fdb061;hp=bf449e7003f7aef3f1f4ed747f7594b2b8381a18;hpb=967760a8937e997ba9d7b729442f882947be154e;p=libsigrok.git diff --git a/hardware/openbench-logic-sniffer/protocol.h b/hardware/openbench-logic-sniffer/protocol.h index bf449e70..b9e16e9c 100644 --- a/hardware/openbench-logic-sniffer/protocol.h +++ b/hardware/openbench-logic-sniffer/protocol.h @@ -75,12 +75,14 @@ #define FLAG_CLOCK_EXTERNAL 0x40 #define FLAG_CLOCK_INVERTED 0x80 #define FLAG_RLE 0x0100 +#define FLAG_SWAP_PROBES 0x0200 #define FLAG_EXTERNAL_TEST_MODE 0x0400 #define FLAG_INTERNAL_TEST_MODE 0x0800 /* Private, per-device-instance driver context. */ struct dev_context { /* Fixed device settings */ + int max_probes; uint32_t max_samples; uint32_t max_samplerate; uint32_t protocol_version; @@ -103,7 +105,7 @@ struct dev_context { int num_bytes; /* Temporary variables */ - int rle_count; + unsigned int rle_count; unsigned char sample[4]; unsigned char tmp_sample[4]; unsigned char *raw_sample_buf;