From: Uwe Hermann Date: Sun, 9 Sep 2018 17:20:06 +0000 (+0200) Subject: miller: Add a few test-cases. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=98ec8c71637e7fd2649aef08d34725279ea4dc45;p=sigrok-test.git miller: Add a few test-cases. --- diff --git a/decoder/test/miller/mfrc522-1gs.bin_raw b/decoder/test/miller/mfrc522-1gs.bin_raw new file mode 100644 index 0000000..0c1470c --- /dev/null +++ b/decoder/test/miller/mfrc522-1gs.bin_raw @@ -0,0 +1,2 @@ +45502-234257 miller: 26 83 00 +325502-514257 miller: 26 83 00 diff --git a/decoder/test/miller/mfrc522-1gs.output b/decoder/test/miller/mfrc522-1gs.output new file mode 100644 index 0000000..c33c68a --- /dev/null +++ b/decoder/test/miller/mfrc522-1gs.output @@ -0,0 +1,42 @@ +45502-54935 miller: bit: "0" +54935-64375 miller: bit: "1" +64375-73815 miller: bit: "1" +73815-83254 miller: bit: "0" +83254-92687 miller: bit: "0" +92687-102128 miller: bit: "1" +102128-111568 miller: bit: "0" +111568-121001 miller: bit: "0" +121001-130440 miller: bit: "1" +130440-139879 miller: bit: "1" +139879-149321 miller: bit: "0" +149321-158754 miller: bit: "0" +158757-168190 miller: bit: "0" +168197-177630 miller: bit: "0" +177634-187067 miller: bit: "0" +187067-196507 miller: bit: "1" +196507-205948 miller: bit: "0" +205948-215381 miller: bit: "0" +215385-224818 miller: bit: "0" +224824-234257 miller: bit: "0" +45502-234257 miller: bitstring: "0110 0100 1100 0001 0000 " +325502-334935 miller: bit: "0" +334935-344375 miller: bit: "1" +344375-353815 miller: bit: "1" +353815-363254 miller: bit: "0" +363254-372687 miller: bit: "0" +372687-382128 miller: bit: "1" +382128-391568 miller: bit: "0" +391568-401001 miller: bit: "0" +401001-410440 miller: bit: "1" +410440-419879 miller: bit: "1" +419879-429321 miller: bit: "0" +429321-438754 miller: bit: "0" +438757-448190 miller: bit: "0" +448197-457630 miller: bit: "0" +457634-467067 miller: bit: "0" +467067-476507 miller: bit: "1" +476507-485948 miller: bit: "0" +485948-495381 miller: bit: "0" +495385-504818 miller: bit: "0" +504824-514257 miller: bit: "0" +325502-514257 miller: bitstring: "0110 0100 1100 0001 0000 " diff --git a/decoder/test/miller/test.conf b/decoder/test/miller/test.conf new file mode 100644 index 0000000..3960c3e --- /dev/null +++ b/decoder/test/miller/test.conf @@ -0,0 +1,5 @@ +test mfrc522-1gs + protocol-decoder miller channel data=0 + input miller/mfrc522/mfrc522-1gs.sr + output miller annotation match mfrc522-1gs.output + output miller binary match mfrc522-1gs.bin_raw