From: Karl Palsson Date: Tue, 11 Apr 2017 22:14:16 +0000 (+0000) Subject: timing: add tests for noaverage/edge/delta modes X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5039d7197b4d642d347beab505bc79b1c662192e;p=sigrok-test.git timing: add tests for noaverage/edge/delta modes Signed-off-by: Karl Palsson --- diff --git a/decoder/test/timing/am2301_1mhz_noavg_rising_delta.output b/decoder/test/timing/am2301_1mhz_noavg_rising_delta.output new file mode 100644 index 0000000..ae4f72e --- /dev/null +++ b/decoder/test/timing/am2301_1mhz_noavg_rising_delta.output @@ -0,0 +1,267 @@ +0-693599 timing: time: "693.599 ms (1.442 Hz)" +693599-693702 timing: time: "103.000 μs (9.709 kHz)" +693599-693702 timing: delta: "-693.496 ms (-1.442 Hz)" +693702-693844 timing: time: "142.000 μs (7.042 kHz)" +693702-693844 timing: delta: "39.000 μs (25.641 kHz)" +693844-693929 timing: time: "85.000 μs (11.765 kHz)" +693844-693929 timing: delta: "-57.000 μs (-17.544 kHz)" +693929-694014 timing: time: "85.000 μs (11.765 kHz)" +693929-694014 timing: delta: "0.000000" +694014-694099 timing: time: "85.000 μs (11.765 kHz)" +694014-694099 timing: delta: "0.000000" +694099-694184 timing: time: "85.000 μs (11.765 kHz)" +694099-694184 timing: delta: "0.000000" +694184-694269 timing: time: "85.000 μs (11.765 kHz)" +694184-694269 timing: delta: "0.000000" +694269-694354 timing: time: "85.000 μs (11.765 kHz)" +694269-694354 timing: delta: "0.000000" +694354-694488 timing: time: "134.000 μs (7.463 kHz)" +694354-694488 timing: delta: "49.000 μs (20.408 kHz)" +694488-694577 timing: time: "89.000 μs (11.236 kHz)" +694488-694577 timing: delta: "-45.000 μs (-22.222 kHz)" +694577-694662 timing: time: "85.000 μs (11.765 kHz)" +694577-694662 timing: delta: "-4.000 μs (-250.000 kHz)" +694662-694748 timing: time: "86.000 μs (11.628 kHz)" +694662-694748 timing: delta: "1000.000 ns (1.000 MHz)" +694748-694833 timing: time: "85.000 μs (11.765 kHz)" +694748-694833 timing: delta: "-1000.000 ns (-1.000 MHz)" +694833-694918 timing: time: "85.000 μs (11.765 kHz)" +694833-694918 timing: delta: "0.000000" +694918-695052 timing: time: "134.000 μs (7.463 kHz)" +694918-695052 timing: delta: "49.000 μs (20.408 kHz)" +695052-695186 timing: time: "134.000 μs (7.463 kHz)" +695052-695186 timing: delta: "0.000000" +695186-695320 timing: time: "134.000 μs (7.463 kHz)" +695186-695320 timing: delta: "0.000000" +695320-695409 timing: time: "89.000 μs (11.236 kHz)" +695320-695409 timing: delta: "-45.000 μs (-22.222 kHz)" +695409-695494 timing: time: "85.000 μs (11.765 kHz)" +695409-695494 timing: delta: "-4.000 μs (-250.000 kHz)" +695494-695579 timing: time: "85.000 μs (11.765 kHz)" +695494-695579 timing: delta: "0.000000" +695579-695664 timing: time: "85.000 μs (11.765 kHz)" +695579-695664 timing: delta: "0.000000" +695664-695749 timing: time: "85.000 μs (11.765 kHz)" +695664-695749 timing: delta: "0.000000" +695749-695834 timing: time: "85.000 μs (11.765 kHz)" +695749-695834 timing: delta: "0.000000" +695834-695919 timing: time: "85.000 μs (11.765 kHz)" +695834-695919 timing: delta: "0.000000" +695919-696004 timing: time: "85.000 μs (11.765 kHz)" +695919-696004 timing: delta: "0.000000" +696004-696142 timing: time: "138.000 μs (7.246 kHz)" +696004-696142 timing: delta: "53.000 μs (18.868 kHz)" +696142-696227 timing: time: "85.000 μs (11.765 kHz)" +696142-696227 timing: delta: "-53.000 μs (-18.868 kHz)" +696227-696312 timing: time: "85.000 μs (11.765 kHz)" +696227-696312 timing: delta: "0.000000" +696312-696397 timing: time: "85.000 μs (11.765 kHz)" +696312-696397 timing: delta: "0.000000" +696397-696482 timing: time: "85.000 μs (11.765 kHz)" +696397-696482 timing: delta: "0.000000" +696482-696567 timing: time: "85.000 μs (11.765 kHz)" +696482-696567 timing: delta: "0.000000" +696567-696653 timing: time: "86.000 μs (11.628 kHz)" +696567-696653 timing: delta: "1000.000 ns (1.000 MHz)" +696653-696738 timing: time: "85.000 μs (11.765 kHz)" +696653-696738 timing: delta: "-1000.000 ns (-1.000 MHz)" +696738-696827 timing: time: "89.000 μs (11.236 kHz)" +696738-696827 timing: delta: "4.000 μs (250.000 kHz)" +696827-696912 timing: time: "85.000 μs (11.765 kHz)" +696827-696912 timing: delta: "-4.000 μs (-250.000 kHz)" +696912-696997 timing: time: "85.000 μs (11.765 kHz)" +696912-696997 timing: delta: "0.000000" +696997-697082 timing: time: "85.000 μs (11.765 kHz)" +696997-697082 timing: delta: "0.000000" +697082-697216 timing: time: "134.000 μs (7.463 kHz)" +697082-697216 timing: delta: "49.000 μs (20.408 kHz)" +697216-697301 timing: time: "85.000 μs (11.765 kHz)" +697216-697301 timing: delta: "-49.000 μs (-20.408 kHz)" +697301-697386 timing: time: "85.000 μs (11.765 kHz)" +697301-697386 timing: delta: "0.000000" +697386-697471 timing: time: "85.000 μs (11.765 kHz)" +697386-697471 timing: delta: "0.000000" +697471-697609 timing: time: "138.000 μs (7.246 kHz)" +697471-697609 timing: delta: "53.000 μs (18.868 kHz)" +697609-697694 timing: time: "85.000 μs (11.765 kHz)" +697609-697694 timing: delta: "-53.000 μs (-18.868 kHz)" +697694-697779 timing: time: "85.000 μs (11.765 kHz)" +697694-697779 timing: delta: "0.000000" +697779-697864 timing: time: "85.000 μs (11.765 kHz)" +697779-697864 timing: delta: "0.000000" +697864-697949 timing: time: "85.000 μs (11.765 kHz)" +697864-697949 timing: delta: "0.000000" +697949-698034 timing: time: "85.000 μs (11.765 kHz)" +697949-698034 timing: delta: "0.000000" +698034-698119 timing: time: "85.000 μs (11.765 kHz)" +698034-698119 timing: delta: "0.000000" +698119-698204 timing: time: "85.000 μs (11.765 kHz)" +698119-698204 timing: delta: "0.000000" +698204-698293 timing: time: "89.000 μs (11.236 kHz)" +698204-698293 timing: delta: "4.000 μs (250.000 kHz)" +698293-698378 timing: time: "85.000 μs (11.765 kHz)" +698293-698378 timing: delta: "-4.000 μs (-250.000 kHz)" +698378-698463 timing: time: "85.000 μs (11.765 kHz)" +698378-698463 timing: delta: "0.000000" +698463-698548 timing: time: "85.000 μs (11.765 kHz)" +698463-698548 timing: delta: "0.000000" +698548-698634 timing: time: "86.000 μs (11.628 kHz)" +698548-698634 timing: delta: "1000.000 ns (1.000 MHz)" +698634-698719 timing: time: "85.000 μs (11.765 kHz)" +698634-698719 timing: delta: "-1000.000 ns (-1.000 MHz)" +698719-698804 timing: time: "85.000 μs (11.765 kHz)" +698719-698804 timing: delta: "0.000000" +698804-698889 timing: time: "85.000 μs (11.765 kHz)" +698804-698889 timing: delta: "0.000000" +698889-698978 timing: time: "89.000 μs (11.236 kHz)" +698889-698978 timing: delta: "4.000 μs (250.000 kHz)" +698978-699063 timing: time: "85.000 μs (11.765 kHz)" +698978-699063 timing: delta: "-4.000 μs (-250.000 kHz)" +699063-699148 timing: time: "85.000 μs (11.765 kHz)" +699063-699148 timing: delta: "0.000000" +699148-699233 timing: time: "85.000 μs (11.765 kHz)" +699148-699233 timing: delta: "0.000000" +699233-699318 timing: time: "85.000 μs (11.765 kHz)" +699233-699318 timing: delta: "0.000000" +699318-699403 timing: time: "85.000 μs (11.765 kHz)" +699318-699403 timing: delta: "0.000000" +699403-699488 timing: time: "85.000 μs (11.765 kHz)" +699403-699488 timing: delta: "0.000000" +699488-699573 timing: time: "85.000 μs (11.765 kHz)" +699488-699573 timing: delta: "0.000000" +699573-699653 timing: time: "80.000 μs (12.500 kHz)" +699573-699653 timing: delta: "-5.000 μs (-200.000 kHz)" +699653-2976040 timing: time: "2.276 s (0.439 Hz)" +699653-2976040 timing: delta: "2.276 s (0.439 Hz)" +2976040-2976144 timing: time: "104.000 μs (9.615 kHz)" +2976040-2976144 timing: delta: "-2.276 s (-0.439 Hz)" +2976144-2976286 timing: time: "142.000 μs (7.042 kHz)" +2976144-2976286 timing: delta: "38.000 μs (26.316 kHz)" +2976286-2976371 timing: time: "85.000 μs (11.765 kHz)" +2976286-2976371 timing: delta: "-57.000 μs (-17.544 kHz)" +2976371-2976456 timing: time: "85.000 μs (11.765 kHz)" +2976371-2976456 timing: delta: "0.000000" +2976456-2976541 timing: time: "85.000 μs (11.765 kHz)" +2976456-2976541 timing: delta: "0.000000" +2976541-2976626 timing: time: "85.000 μs (11.765 kHz)" +2976541-2976626 timing: delta: "0.000000" +2976626-2976711 timing: time: "85.000 μs (11.765 kHz)" +2976626-2976711 timing: delta: "0.000000" +2976711-2976796 timing: time: "85.000 μs (11.765 kHz)" +2976711-2976796 timing: delta: "0.000000" +2976796-2976930 timing: time: "134.000 μs (7.463 kHz)" +2976796-2976930 timing: delta: "49.000 μs (20.408 kHz)" +2976930-2977019 timing: time: "89.000 μs (11.236 kHz)" +2976930-2977019 timing: delta: "-45.000 μs (-22.222 kHz)" +2977019-2977104 timing: time: "85.000 μs (11.765 kHz)" +2977019-2977104 timing: delta: "-4.000 μs (-250.000 kHz)" +2977104-2977189 timing: time: "85.000 μs (11.765 kHz)" +2977104-2977189 timing: delta: "0.000000" +2977189-2977274 timing: time: "85.000 μs (11.765 kHz)" +2977189-2977274 timing: delta: "0.000000" +2977274-2977359 timing: time: "85.000 μs (11.765 kHz)" +2977274-2977359 timing: delta: "0.000000" +2977359-2977493 timing: time: "134.000 μs (7.463 kHz)" +2977359-2977493 timing: delta: "49.000 μs (20.408 kHz)" +2977493-2977627 timing: time: "134.000 μs (7.463 kHz)" +2977493-2977627 timing: delta: "0.000000" +2977627-2977762 timing: time: "135.000 μs (7.407 kHz)" +2977627-2977762 timing: delta: "1000.000 ns (1.000 MHz)" +2977762-2977851 timing: time: "89.000 μs (11.236 kHz)" +2977762-2977851 timing: delta: "-46.000 μs (-21.739 kHz)" +2977851-2977936 timing: time: "85.000 μs (11.765 kHz)" +2977851-2977936 timing: delta: "-4.000 μs (-250.000 kHz)" +2977936-2978021 timing: time: "85.000 μs (11.765 kHz)" +2977936-2978021 timing: delta: "0.000000" +2978021-2978106 timing: time: "85.000 μs (11.765 kHz)" +2978021-2978106 timing: delta: "0.000000" +2978106-2978191 timing: time: "85.000 μs (11.765 kHz)" +2978106-2978191 timing: delta: "0.000000" +2978191-2978276 timing: time: "85.000 μs (11.765 kHz)" +2978191-2978276 timing: delta: "0.000000" +2978276-2978361 timing: time: "85.000 μs (11.765 kHz)" +2978276-2978361 timing: delta: "0.000000" +2978361-2978446 timing: time: "85.000 μs (11.765 kHz)" +2978361-2978446 timing: delta: "0.000000" +2978446-2978584 timing: time: "138.000 μs (7.246 kHz)" +2978446-2978584 timing: delta: "53.000 μs (18.868 kHz)" +2978584-2978669 timing: time: "85.000 μs (11.765 kHz)" +2978584-2978669 timing: delta: "-53.000 μs (-18.868 kHz)" +2978669-2978754 timing: time: "85.000 μs (11.765 kHz)" +2978669-2978754 timing: delta: "0.000000" +2978754-2978839 timing: time: "85.000 μs (11.765 kHz)" +2978754-2978839 timing: delta: "0.000000" +2978839-2978924 timing: time: "85.000 μs (11.765 kHz)" +2978839-2978924 timing: delta: "0.000000" +2978924-2979009 timing: time: "85.000 μs (11.765 kHz)" +2978924-2979009 timing: delta: "0.000000" +2979009-2979094 timing: time: "85.000 μs (11.765 kHz)" +2979009-2979094 timing: delta: "0.000000" +2979094-2979179 timing: time: "85.000 μs (11.765 kHz)" +2979094-2979179 timing: delta: "0.000000" +2979179-2979268 timing: time: "89.000 μs (11.236 kHz)" +2979179-2979268 timing: delta: "4.000 μs (250.000 kHz)" +2979268-2979353 timing: time: "85.000 μs (11.765 kHz)" +2979268-2979353 timing: delta: "-4.000 μs (-250.000 kHz)" +2979353-2979438 timing: time: "85.000 μs (11.765 kHz)" +2979353-2979438 timing: delta: "0.000000" +2979438-2979523 timing: time: "85.000 μs (11.765 kHz)" +2979438-2979523 timing: delta: "0.000000" +2979523-2979657 timing: time: "134.000 μs (7.463 kHz)" +2979523-2979657 timing: delta: "49.000 μs (20.408 kHz)" +2979657-2979743 timing: time: "86.000 μs (11.628 kHz)" +2979657-2979743 timing: delta: "-48.000 μs (-20.833 kHz)" +2979743-2979828 timing: time: "85.000 μs (11.765 kHz)" +2979743-2979828 timing: delta: "-1000.000 ns (-1.000 MHz)" +2979828-2979913 timing: time: "85.000 μs (11.765 kHz)" +2979828-2979913 timing: delta: "0.000000" +2979913-2980051 timing: time: "138.000 μs (7.246 kHz)" +2979913-2980051 timing: delta: "53.000 μs (18.868 kHz)" +2980051-2980136 timing: time: "85.000 μs (11.765 kHz)" +2980051-2980136 timing: delta: "-53.000 μs (-18.868 kHz)" +2980136-2980221 timing: time: "85.000 μs (11.765 kHz)" +2980136-2980221 timing: delta: "0.000000" +2980221-2980306 timing: time: "85.000 μs (11.765 kHz)" +2980221-2980306 timing: delta: "0.000000" +2980306-2980391 timing: time: "85.000 μs (11.765 kHz)" +2980306-2980391 timing: delta: "0.000000" +2980391-2980476 timing: time: "85.000 μs (11.765 kHz)" +2980391-2980476 timing: delta: "0.000000" +2980476-2980561 timing: time: "85.000 μs (11.765 kHz)" +2980476-2980561 timing: delta: "0.000000" +2980561-2980646 timing: time: "85.000 μs (11.765 kHz)" +2980561-2980646 timing: delta: "0.000000" +2980646-2980735 timing: time: "89.000 μs (11.236 kHz)" +2980646-2980735 timing: delta: "4.000 μs (250.000 kHz)" +2980735-2980820 timing: time: "85.000 μs (11.765 kHz)" +2980735-2980820 timing: delta: "-4.000 μs (-250.000 kHz)" +2980820-2980905 timing: time: "85.000 μs (11.765 kHz)" +2980820-2980905 timing: delta: "0.000000" +2980905-2980990 timing: time: "85.000 μs (11.765 kHz)" +2980905-2980990 timing: delta: "0.000000" +2980990-2981075 timing: time: "85.000 μs (11.765 kHz)" +2980990-2981075 timing: delta: "0.000000" +2981075-2981160 timing: time: "85.000 μs (11.765 kHz)" +2981075-2981160 timing: delta: "0.000000" +2981160-2981245 timing: time: "85.000 μs (11.765 kHz)" +2981160-2981245 timing: delta: "0.000000" +2981245-2981330 timing: time: "85.000 μs (11.765 kHz)" +2981245-2981330 timing: delta: "0.000000" +2981330-2981419 timing: time: "89.000 μs (11.236 kHz)" +2981330-2981419 timing: delta: "4.000 μs (250.000 kHz)" +2981419-2981504 timing: time: "85.000 μs (11.765 kHz)" +2981419-2981504 timing: delta: "-4.000 μs (-250.000 kHz)" +2981504-2981589 timing: time: "85.000 μs (11.765 kHz)" +2981504-2981589 timing: delta: "0.000000" +2981589-2981675 timing: time: "86.000 μs (11.628 kHz)" +2981589-2981675 timing: delta: "1000.000 ns (1.000 MHz)" +2981675-2981760 timing: time: "85.000 μs (11.765 kHz)" +2981675-2981760 timing: delta: "-1000.000 ns (-1.000 MHz)" +2981760-2981845 timing: time: "85.000 μs (11.765 kHz)" +2981760-2981845 timing: delta: "0.000000" +2981845-2981930 timing: time: "85.000 μs (11.765 kHz)" +2981845-2981930 timing: delta: "0.000000" +2981930-2982015 timing: time: "85.000 μs (11.765 kHz)" +2981930-2982015 timing: delta: "0.000000" +2982015-2982094 timing: time: "79.000 μs (12.658 kHz)" +2982015-2982094 timing: delta: "-6.000 μs (-166.667 kHz)" diff --git a/decoder/test/timing/test.conf b/decoder/test/timing/test.conf index 34ccc47..feca6af 100644 --- a/decoder/test/timing/test.conf +++ b/decoder/test/timing/test.conf @@ -7,3 +7,8 @@ test am2301_1mhz_avg4 protocol-decoder timing channel data=5 option avg_period=4 input am230x/am2301/am2301_1mhz.sr output timing annotation match am2301_1mhz_avg4.output + +test am2301_1mhz_noavg_rising_delta + protocol-decoder timing channel data=5 option avg_period=0 option edge=rising option delta=yes + input am230x/am2301/am2301_1mhz.sr + output timing annotation match am2301_1mhz_noavg_rising_delta.output