]> sigrok.org Git - sigrok-test.git/commitdiff
i2c: Add an additional test-case.
authorUwe Hermann <redacted>
Fri, 16 Oct 2015 17:21:41 +0000 (19:21 +0200)
committerUwe Hermann <redacted>
Fri, 16 Oct 2015 17:21:41 +0000 (19:21 +0200)
decoder/test/i2c/test.conf
decoder/test/i2c/wii_nunchuk_init.output [new file with mode: 0644]

index 8212194ed93124a37ee8f0fd0cd8fe26ee77243a..d9b1e746090a27c0dc001aa491d45c86ce4f8162 100644 (file)
@@ -20,6 +20,11 @@ test xfp
        output i2c binary class address-read match xfp_address_read.binary
        output i2c binary class address-write match xfp_address_write.binary
 
+test wii_nunchuk_init
+       protocol-decoder i2c channel scl=0 channel sda=1
+       input i2c/wii_nunchuk/wii_nunchuk_init.sr
+       output i2c annotation match wii_nunchuk_init.output
+
 test exception_samplerate
        protocol-decoder i2c
        input misc/no-samplerate.sr
diff --git a/decoder/test/i2c/wii_nunchuk_init.output b/decoder/test/i2c/wii_nunchuk_init.output
new file mode 100644 (file)
index 0000000..392fef8
--- /dev/null
@@ -0,0 +1,33 @@
+645807-645807 i2c: start: "Start" "S"
+646142-646153 i2c: bit: "0"
+646131-646142 i2c: bit: "0"
+646121-646131 i2c: bit: "1"
+646111-646121 i2c: bit: "0"
+646100-646111 i2c: bit: "0"
+646090-646100 i2c: bit: "1"
+646080-646090 i2c: bit: "0"
+646069-646080 i2c: bit: "1"
+646142-646153 i2c: address-write: "Write" "Wr" "W"
+646069-646142 i2c: address-write: "Address write: 52" "AW: 52" "52"
+646152-646163 i2c: ack: "ACK" "A"
+646399-646410 i2c: bit: "0"
+646388-646399 i2c: bit: "0"
+646378-646388 i2c: bit: "0"
+646368-646378 i2c: bit: "0"
+646357-646368 i2c: bit: "0"
+646347-646357 i2c: bit: "0"
+646337-646347 i2c: bit: "1"
+646327-646337 i2c: bit: "0"
+646327-646410 i2c: data-write: "Data write: 40" "DW: 40" "40"
+646409-646420 i2c: ack: "ACK" "A"
+646663-646673 i2c: bit: "0"
+646653-646663 i2c: bit: "0"
+646643-646653 i2c: bit: "0"
+646633-646643 i2c: bit: "0"
+646622-646633 i2c: bit: "0"
+646612-646622 i2c: bit: "0"
+646602-646612 i2c: bit: "0"
+646591-646602 i2c: bit: "0"
+646591-646673 i2c: data-write: "Data write: 00" "DW: 00" "00"
+646674-646684 i2c: ack: "ACK" "A"
+646743-646743 i2c: stop: "Stop" "P"