From ffac3f0132640f5f7df22218fa03065d7a1ffad9 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 25 Feb 2017 16:10:49 +0100 Subject: iec: Add a simple test-case. --- decoder/test/iec/cbm_1571_read_status.output | 90 ++++++++++++++++++++++++++++ decoder/test/iec/test.conf | 4 ++ 2 files changed, 94 insertions(+) create mode 100644 decoder/test/iec/cbm_1571_read_status.output create mode 100644 decoder/test/iec/test.conf (limited to 'decoder') diff --git a/decoder/test/iec/cbm_1571_read_status.output b/decoder/test/iec/cbm_1571_read_status.output new file mode 100644 index 0000000..366fec6 --- /dev/null +++ b/decoder/test/iec/cbm_1571_read_status.output @@ -0,0 +1,90 @@ +1821728-1822496 iec: items: "48" +1821728-1822496 iec: gpib: "T8" +1821728-1822496 iec: eoi: " " +1822802-1823565 iec: items: "6F" +1822802-1823565 iec: gpib: "R?" +1822802-1823565 iec: eoi: " " +1850886-1852484 iec: items: "37" +1850886-1852484 iec: gpib: "7" +1850886-1852484 iec: eoi: " " +1853148-1854766 iec: items: "33" +1853148-1854766 iec: gpib: "3" +1853148-1854766 iec: eoi: " " +1855267-1856900 iec: items: "2C" +1855267-1856900 iec: gpib: "," +1855267-1856900 iec: eoi: " " +1857358-1858982 iec: items: "43" +1857358-1858982 iec: gpib: "C" +1857358-1858982 iec: eoi: " " +1859384-1861014 iec: items: "42" +1859384-1861014 iec: gpib: "B" +1859384-1861014 iec: eoi: " " +1861672-1863297 iec: items: "4D" +1861672-1863297 iec: gpib: "M" +1861672-1863297 iec: eoi: " " +1863699-1865331 iec: items: "20" +1863699-1865331 iec: gpib: " " +1863699-1865331 iec: eoi: " " +1865732-1867363 iec: items: "44" +1865732-1867363 iec: gpib: "D" +1865732-1867363 iec: eoi: " " +1867765-1869389 iec: items: "4F" +1867765-1869389 iec: gpib: "O" +1867765-1869389 iec: eoi: " " +1870046-1871671 iec: items: "53" +1870046-1871671 iec: gpib: "S" +1870046-1871671 iec: eoi: " " +1872073-1873706 iec: items: "20" +1872073-1873706 iec: gpib: " " +1872073-1873706 iec: eoi: " " +1874107-1875734 iec: items: "56" +1874107-1875734 iec: gpib: "V" +1874107-1875734 iec: eoi: " " +1876136-1877762 iec: items: "33" +1876136-1877762 iec: gpib: "3" +1876136-1877762 iec: eoi: " " +1878419-1880044 iec: items: "2E" +1878419-1880044 iec: gpib: "." +1878419-1880044 iec: eoi: " " +1880446-1882076 iec: items: "30" +1880446-1882076 iec: gpib: "0" +1880446-1882076 iec: eoi: " " +1882478-1884111 iec: items: "20" +1882478-1884111 iec: gpib: " " +1882478-1884111 iec: eoi: " " +1884513-1886141 iec: items: "31" +1884513-1886141 iec: gpib: "1" +1884513-1886141 iec: eoi: " " +1886816-1888423 iec: items: "35" +1886816-1888423 iec: gpib: "5" +1886816-1888423 iec: eoi: " " +1888818-1890449 iec: items: "37" +1888818-1890449 iec: gpib: "7" +1888818-1890449 iec: eoi: " " +1890940-1892542 iec: items: "31" +1890940-1892542 iec: gpib: "1" +1890940-1892542 iec: eoi: " " +1892980-1894584 iec: items: "2C" +1892980-1894584 iec: gpib: "," +1892980-1894584 iec: eoi: " " +1895300-1896922 iec: items: "30" +1895300-1896922 iec: gpib: "0" +1895300-1896922 iec: eoi: " " +1897324-1898954 iec: items: "30" +1897324-1898954 iec: gpib: "0" +1897324-1898954 iec: eoi: " " +1899355-1900984 iec: items: "2C" +1899355-1900984 iec: gpib: "," +1899355-1900984 iec: eoi: " " +1901386-1903016 iec: items: "30" +1901386-1903016 iec: gpib: "0" +1901386-1903016 iec: eoi: " " +1903819-1905427 iec: items: "30" +1903819-1905427 iec: gpib: "0" +1903819-1905427 iec: eoi: " " +1906420-1908616 iec: items: "0D" +1906420-1908616 iec: gpib: "CR" +1906420-1908616 iec: eoi: "EOI" +1916131-1916895 iec: items: "5F" +1916131-1916895 iec: gpib: "UNT" +1916131-1916895 iec: eoi: " " diff --git a/decoder/test/iec/test.conf b/decoder/test/iec/test.conf new file mode 100644 index 0000000..8522c89 --- /dev/null +++ b/decoder/test/iec/test.conf @@ -0,0 +1,4 @@ +test cbm_1571_read_status + protocol-decoder iec channel data=4 channel clk=3 channel atn=2 channel srq=0 + input gpib/serial/cbm1571/cbm_1571_read_status.sr + output iec annotation match cbm_1571_read_status.output -- cgit v1.2.3-70-g09d2