]> sigrok.org Git - sigrok-test.git/commitdiff
Add a few pan1321 test cases.
authorUwe Hermann <redacted>
Wed, 15 Oct 2014 13:44:16 +0000 (15:44 +0200)
committerUwe Hermann <redacted>
Wed, 15 Oct 2014 13:44:16 +0000 (15:44 +0200)
decoder/test/pan1321/pan1321_jres.output [new file with mode: 0644]
decoder/test/pan1321/pan1321_jsda_hello_world.output [new file with mode: 0644]
decoder/test/pan1321/test.conf [new file with mode: 0644]

diff --git a/decoder/test/pan1321/pan1321_jres.output b/decoder/test/pan1321/pan1321_jres.output
new file mode 100644 (file)
index 0000000..6196a60
--- /dev/null
@@ -0,0 +1,4 @@
+691168-692692 pan1321: text-verbose: "Triggering a software reset"
+691168-692692 pan1321: text: "Reset"
+2696904-2697737 pan1321: text-verbose: "Device initialized correctly"
+2696904-2697737 pan1321: text: "Init"
diff --git a/decoder/test/pan1321/pan1321_jsda_hello_world.output b/decoder/test/pan1321/pan1321_jsda_hello_world.output
new file mode 100644 (file)
index 0000000..8c3d530
--- /dev/null
@@ -0,0 +1,4 @@
+474508-478634 pan1321: text-verbose: "Sending 10 data bytes: 68 65 6c 6c 6f 77 6f 72 6c 64"
+474508-478634 pan1321: text: "Send 10 = 68 65 6c 6c 6f 77 6f 72 6c 64"
+479980-480639 pan1321: text-verbose: "Device acknowledged last command"
+479980-480639 pan1321: text: "ACK"
diff --git a/decoder/test/pan1321/test.conf b/decoder/test/pan1321/test.conf
new file mode 100644 (file)
index 0000000..f02be45
--- /dev/null
@@ -0,0 +1,20 @@
+test pan1321_jres_baudrate
+       protocol-decoder uart channel tx=0 channel rx=3 option baudrate=115200
+       protocol-decoder pan1321
+       stack uart pan1321
+       input uart/panasonic_pan1321/sender_and_receiver/pan1321_JRES.sr
+       output pan1321 annotation match pan1321_jres.output
+
+test pan1321_jres_no_baudrate
+       protocol-decoder uart channel tx=0 channel rx=3
+       protocol-decoder pan1321
+       stack uart pan1321
+       input uart/panasonic_pan1321/sender_and_receiver/pan1321_JRES.sr
+       output pan1321 annotation match pan1321_jres.output
+
+test pan1321_jsda_hello_world
+       protocol-decoder uart channel tx=0 channel rx=3 option baudrate=115200
+       protocol-decoder pan1321
+       stack uart pan1321
+       input uart/panasonic_pan1321/sender_and_receiver/pan1321_JSDA_helloworld.sr
+       output pan1321 annotation match pan1321_jsda_hello_world.output