diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2015-10-16 19:21:41 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-10-16 19:21:41 +0200 |
commit | 41c90e4ede32c979103643141d9450217e5333d8 (patch) | |
tree | 576f609d430aee90f2cb0a3f13db16ffe99f568b | |
parent | 8a8c92bde034cc6c04835eff0e844406177e947f (diff) | |
download | sigrok-test-41c90e4ede32c979103643141d9450217e5333d8.tar.gz sigrok-test-41c90e4ede32c979103643141d9450217e5333d8.zip |
i2c: Add an additional test-case.
-rw-r--r-- | decoder/test/i2c/test.conf | 5 | ||||
-rw-r--r-- | decoder/test/i2c/wii_nunchuk_init.output | 33 |
2 files changed, 38 insertions, 0 deletions
diff --git a/decoder/test/i2c/test.conf b/decoder/test/i2c/test.conf index 8212194..d9b1e74 100644 --- a/decoder/test/i2c/test.conf +++ b/decoder/test/i2c/test.conf @@ -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 index 0000000..392fef8 --- /dev/null +++ b/decoder/test/i2c/wii_nunchuk_init.output @@ -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" |