]> sigrok.org Git - sigrok-test.git/commitdiff
Add a test-case for the GPIB decoder.
authorUwe Hermann <redacted>
Wed, 12 Oct 2016 01:14:30 +0000 (03:14 +0200)
committerUwe Hermann <redacted>
Wed, 12 Oct 2016 02:08:59 +0000 (04:08 +0200)
decoder/test/gpib/gpib_hp1631d.output [new file with mode: 0644]
decoder/test/gpib/test.conf [new file with mode: 0644]

diff --git a/decoder/test/gpib/gpib_hp1631d.output b/decoder/test/gpib/gpib_hp1631d.output
new file mode 100644 (file)
index 0000000..2683f0c
--- /dev/null
@@ -0,0 +1,51 @@
+0-9 gpib: items: "3F"
+0-9 gpib: gpib: "UNL"
+0-9 gpib: eoi: " "
+9-18 gpib: items: "5F"
+9-18 gpib: gpib: "UNT"
+9-18 gpib: eoi: " "
+18-25 gpib: items: "24"
+18-25 gpib: gpib: "L4"
+18-25 gpib: eoi: " "
+25-4031 gpib: items: "49"
+25-4031 gpib: gpib: "I"
+25-4031 gpib: eoi: " "
+4031-5843 gpib: items: "44"
+4031-5843 gpib: gpib: "D"
+4031-5843 gpib: eoi: " "
+5843-5852 gpib: items: "0A"
+5843-5852 gpib: gpib: "LF"
+5843-5852 gpib: eoi: "EOI"
+5852-5860 gpib: items: "3F"
+5852-5860 gpib: gpib: "UNL"
+5852-5860 gpib: eoi: " "
+5860-5869 gpib: items: "5F"
+5860-5869 gpib: gpib: "UNT"
+5860-5869 gpib: eoi: " "
+5869-14830 gpib: items: "44"
+5869-14830 gpib: gpib: "T4"
+5869-14830 gpib: eoi: " "
+14830-15417 gpib: items: "48"
+14830-15417 gpib: gpib: "H"
+14830-15417 gpib: eoi: " "
+15417-15536 gpib: items: "50"
+15417-15536 gpib: gpib: "P"
+15417-15536 gpib: eoi: " "
+15536-15656 gpib: items: "31"
+15536-15656 gpib: gpib: "1"
+15536-15656 gpib: eoi: " "
+15656-15775 gpib: items: "36"
+15656-15775 gpib: gpib: "6"
+15656-15775 gpib: eoi: " "
+15775-15895 gpib: items: "33"
+15775-15895 gpib: gpib: "3"
+15775-15895 gpib: eoi: " "
+15895-16106 gpib: items: "31"
+15895-16106 gpib: gpib: "1"
+15895-16106 gpib: eoi: " "
+16106-16123 gpib: items: "44"
+16106-16123 gpib: gpib: "D"
+16106-16123 gpib: eoi: "EOI"
+16123-16130 gpib: items: "3F"
+16123-16130 gpib: gpib: "UNL"
+16123-16130 gpib: eoi: " "
diff --git a/decoder/test/gpib/test.conf b/decoder/test/gpib/test.conf
new file mode 100644 (file)
index 0000000..679e6cd
--- /dev/null
@@ -0,0 +1,4 @@
+test gpib_hp1631d
+       protocol-decoder gpib channel dio1=0 channel dio2=1 channel dio3=2 channel dio4=3 channel dio5=4 channel dio6=5 channel dio7=6 channel dio8=7 channel eoi=8 channel dav=9 channel nrfd=10 channel ndac=11 channel ifc=12 channel srq=13 channel atn=14 channel ren=15
+       input gpib/hp1631d/gpib_hp1631d.sr
+       output gpib annotation match gpib_hp1631d.output