From: Mickael Bosch Date: Tue, 2 Jul 2019 14:33:02 +0000 (+0200) Subject: Add some NXP PCA9571 decoder test. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0e8f31546b67669f71e4581004bafc93b39b2d4e;p=sigrok-test.git Add some NXP PCA9571 decoder test. --- diff --git a/decoder/test/pca9571/pca9571_sequence.output b/decoder/test/pca9571/pca9571_sequence.output new file mode 100644 index 0000000..e3364c4 --- /dev/null +++ b/decoder/test/pca9571/pca9571_sequence.output @@ -0,0 +1,64 @@ +138-188 pca9571: value: "Outputs set: D0" "W: D0" +327-375 pca9571: value: "Outputs set: D1" "W: D1" +480-529 pca9571: value: "Outputs set: D2" "W: D2" +634-683 pca9571: value: "Outputs set: D3" "W: D3" +788-836 pca9571: value: "Outputs set: D4" "W: D4" +942-990 pca9571: value: "Outputs set: D5" "W: D5" +1095-1145 pca9571: value: "Outputs set: D6" "W: D6" +1249-1297 pca9571: value: "Outputs set: D7" "W: D7" +1402-1451 pca9571: value: "Outputs set: D8" "W: D8" +1556-1605 pca9571: value: "Outputs set: D9" "W: D9" +1710-1758 pca9571: value: "Outputs set: DA" "W: DA" +1863-1912 pca9571: value: "Outputs set: DB" "W: DB" +2017-2066 pca9571: value: "Outputs set: DC" "W: DC" +2171-2219 pca9571: value: "Outputs set: DD" "W: DD" +2325-2373 pca9571: value: "Outputs set: DE" "W: DE" +2478-2527 pca9571: value: "Outputs set: DF" "W: DF" +2632-2681 pca9571: value: "Outputs set: D0" "W: D0" +2786-2834 pca9571: value: "Outputs set: D1" "W: D1" +2939-2988 pca9571: value: "Outputs set: D2" "W: D2" +3093-3141 pca9571: value: "Outputs set: D3" "W: D3" +3247-3295 pca9571: value: "Outputs set: D4" "W: D4" +3400-3449 pca9571: value: "Outputs set: D5" "W: D5" +3554-3602 pca9571: value: "Outputs set: D6" "W: D6" +3708-3756 pca9571: value: "Outputs set: D7" "W: D7" +3861-3910 pca9571: value: "Outputs set: D8" "W: D8" +4015-4063 pca9571: value: "Outputs set: D9" "W: D9" +4168-4217 pca9571: value: "Outputs set: DA" "W: DA" +4322-4370 pca9571: value: "Outputs set: DB" "W: DB" +4476-4526 pca9571: value: "Outputs set: DC" "W: DC" +4630-4678 pca9571: value: "Outputs set: DD" "W: DD" +4783-4832 pca9571: value: "Outputs set: DE" "W: DE" +4937-4987 pca9571: value: "Outputs set: DF" "W: DF" +5091-5140 pca9571: value: "Outputs set: F0" "W: F0" +5244-5293 pca9571: value: "Outputs set: F1" "W: F1" +5398-5447 pca9571: value: "Outputs set: F2" "W: F2" +5552-5600 pca9571: value: "Outputs set: F3" "W: F3" +5705-5754 pca9571: value: "Outputs set: F4" "W: F4" +5859-5908 pca9571: value: "Outputs set: F5" "W: F5" +6013-6061 pca9571: value: "Outputs set: F6" "W: F6" +6166-6215 pca9571: value: "Outputs set: F7" "W: F7" +6320-6369 pca9571: value: "Outputs set: F8" "W: F8" +6474-6521 pca9571: value: "Outputs set: F9" "W: F9" +6627-6676 pca9571: value: "Outputs set: FA" "W: FA" +6781-6830 pca9571: value: "Outputs set: FB" "W: FB" +6935-6985 pca9571: value: "Outputs set: FC" "W: FC" +7088-7137 pca9571: value: "Outputs set: FD" "W: FD" +7242-7291 pca9571: value: "Outputs set: FE" "W: FE" +7396-7446 pca9571: value: "Outputs set: FF" "W: FF" +7549-7598 pca9571: value: "Outputs set: F0" "W: F0" +7703-7752 pca9571: value: "Outputs set: F1" "W: F1" +7857-7907 pca9571: value: "Outputs set: F2" "W: F2" +8010-8059 pca9571: value: "Outputs set: F3" "W: F3" +8164-8213 pca9571: value: "Outputs set: F4" "W: F4" +8318-8366 pca9571: value: "Outputs set: F5" "W: F5" +8471-8520 pca9571: value: "Outputs set: F6" "W: F6" +8625-8674 pca9571: value: "Outputs set: F7" "W: F7" +8779-8829 pca9571: value: "Outputs set: F8" "W: F8" +8932-8981 pca9571: value: "Outputs set: F9" "W: F9" +9086-9136 pca9571: value: "Outputs set: FA" "W: FA" +9240-9288 pca9571: value: "Outputs set: FB" "W: FB" +9393-9442 pca9571: value: "Outputs set: FC" "W: FC" +9547-9594 pca9571: value: "Outputs set: FD" "W: FD" +9701-9749 pca9571: value: "Outputs set: FE" "W: FE" +9854-9903 pca9571: value: "Outputs set: FF" "W: FF" diff --git a/decoder/test/pca9571/pca9571_simple.output b/decoder/test/pca9571/pca9571_simple.output new file mode 100644 index 0000000..1d2131f --- /dev/null +++ b/decoder/test/pca9571/pca9571_simple.output @@ -0,0 +1 @@ +74-124 pca9571: value: "Outputs set: D0" "W: D0" diff --git a/decoder/test/pca9571/pca9571_warning.output b/decoder/test/pca9571/pca9571_warning.output new file mode 100644 index 0000000..58253fb --- /dev/null +++ b/decoder/test/pca9571/pca9571_warning.output @@ -0,0 +1,3 @@ +67-116 pca9571: warning: "Warning: read value and last write value (FF) are different" +67-116 pca9571: value: "Outputs read: D0" "R: D0" +217-266 pca9571: value: "Outputs set: D0" "W: D0" diff --git a/decoder/test/pca9571/test.conf b/decoder/test/pca9571/test.conf new file mode 100644 index 0000000..b62d9b0 --- /dev/null +++ b/decoder/test/pca9571/test.conf @@ -0,0 +1,20 @@ +test pca9571_simple + protocol-decoder i2c channel sda=0 channel scl=1 + protocol-decoder pca9571 + stack i2c pca9571 + input i2c/nxp_pca9571/pca9571_simple.sr + output pca9571 annotation match pca9571_simple.output + +test pca9571_sequence + protocol-decoder i2c channel sda=0 channel scl=1 + protocol-decoder pca9571 + stack i2c pca9571 + input i2c/nxp_pca9571/pca9571_sequence.sr + output pca9571 annotation match pca9571_sequence.output + +test pca9571_warning + protocol-decoder i2c channel sda=0 channel scl=1 + protocol-decoder pca9571 + stack i2c pca9571 + input i2c/nxp_pca9571/pca9571_warning.sr + output pca9571 annotation match pca9571_warning.output \ No newline at end of file