X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fprotocol.h;h=a721c50b731220e8cf15a24cb92d0a3166c04645;hb=de524099823d7a7b9aeae3e87e79c14cfc809fd6;hp=3322409f06bd9c5a9ea6ac776c9adb929317fc8b;hpb=29a27196a13de2ffd9b671185e4b464b9db9b549;p=libsigrok.git diff --git a/hardware/openbench-logic-sniffer/protocol.h b/hardware/openbench-logic-sniffer/protocol.h index 3322409f..a721c50b 100644 --- a/hardware/openbench-logic-sniffer/protocol.h +++ b/hardware/openbench-logic-sniffer/protocol.h @@ -46,6 +46,7 @@ /* Command opcodes */ #define CMD_RESET 0x00 #define CMD_RUN 0x01 +#define CMD_TESTMODE 0x03 #define CMD_ID 0x02 #define CMD_METADATA 0x04 #define CMD_SET_FLAGS 0x82 @@ -74,6 +75,8 @@ #define FLAG_CLOCK_EXTERNAL 0x40 #define FLAG_CLOCK_INVERTED 0x80 #define FLAG_RLE 0x0100 +#define FLAG_EXTERNAL_TEST_MODE 0x0400 +#define FLAG_INTERNAL_TEST_MODE 0x0800 /* Private, per-device-instance driver context. */ struct dev_context { @@ -100,7 +103,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;