summaryrefslogtreecommitdiff
path: root/decoders/spi
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2014-06-27 18:45:01 +0200
committerBert Vermeulen <bert@biot.com>2014-06-27 18:45:01 +0200
commit7ea7c017c334ebb466923f6e9fef9ef72e157676 (patch)
tree107ee388270d3fa7964c27a5b29a03d60b935a1c /decoders/spi
parent4fecc5a4bcb036f40e23ab967579334076203c2f (diff)
downloadlibsigrokdecode-7ea7c017c334ebb466923f6e9fef9ef72e157676.tar.gz
libsigrokdecode-7ea7c017c334ebb466923f6e9fef9ef72e157676.zip
spi: Add coverage tests for all mosi/miso and lsb/msb combinations.
Diffstat (limited to 'decoders/spi')
-rw-r--r--decoders/spi/test/spi_count_miso_lsb.output0
-rw-r--r--decoders/spi/test/spi_count_miso_msb.output256
-rw-r--r--decoders/spi/test/spi_count_mosi_lsb.output256
-rw-r--r--decoders/spi/test/spi_count_mosi_msb.output256
-rw-r--r--decoders/spi/test/test.conf20
5 files changed, 788 insertions, 0 deletions
diff --git a/decoders/spi/test/spi_count_miso_lsb.output b/decoders/spi/test/spi_count_miso_lsb.output
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/decoders/spi/test/spi_count_miso_lsb.output
diff --git a/decoders/spi/test/spi_count_miso_msb.output b/decoders/spi/test/spi_count_miso_msb.output
new file mode 100644
index 0000000..aacd84f
--- /dev/null
+++ b/decoders/spi/test/spi_count_miso_msb.output
@@ -0,0 +1,256 @@
+10-44 spi: miso-data: "00"
+46-80 spi: miso-data: "01"
+83-118 spi: miso-data: "02"
+119-153 spi: miso-data: "03"
+155-189 spi: miso-data: "04"
+192-227 spi: miso-data: "05"
+228-262 spi: miso-data: "06"
+265-298 spi: miso-data: "07"
+301-335 spi: miso-data: "08"
+337-371 spi: miso-data: "09"
+374-407 spi: miso-data: "0A"
+410-444 spi: miso-data: "0B"
+446-480 spi: miso-data: "0C"
+483-518 spi: miso-data: "0D"
+519-553 spi: miso-data: "0E"
+555-589 spi: miso-data: "0F"
+592-627 spi: miso-data: "10"
+628-662 spi: miso-data: "11"
+664-698 spi: miso-data: "12"
+701-736 spi: miso-data: "13"
+737-771 spi: miso-data: "14"
+774-807 spi: miso-data: "15"
+810-844 spi: miso-data: "16"
+846-880 spi: miso-data: "17"
+883-918 spi: miso-data: "18"
+919-953 spi: miso-data: "19"
+955-989 spi: miso-data: "1A"
+992-1027 spi: miso-data: "1B"
+1028-1062 spi: miso-data: "1C"
+1064-1098 spi: miso-data: "1D"
+1101-1136 spi: miso-data: "1E"
+1137-1171 spi: miso-data: "1F"
+1174-1207 spi: miso-data: "20"
+1210-1244 spi: miso-data: "21"
+1246-1280 spi: miso-data: "22"
+1283-1318 spi: miso-data: "23"
+1319-1353 spi: miso-data: "24"
+1355-1389 spi: miso-data: "25"
+1392-1427 spi: miso-data: "26"
+1428-1462 spi: miso-data: "27"
+1464-1498 spi: miso-data: "28"
+1501-1536 spi: miso-data: "29"
+1537-1571 spi: miso-data: "2A"
+1574-1607 spi: miso-data: "2B"
+1610-1645 spi: miso-data: "2C"
+1646-1680 spi: miso-data: "2D"
+1683-1716 spi: miso-data: "2E"
+1719-1753 spi: miso-data: "2F"
+1755-1789 spi: miso-data: "30"
+1792-1827 spi: miso-data: "31"
+1828-1862 spi: miso-data: "32"
+1864-1898 spi: miso-data: "33"
+1901-1936 spi: miso-data: "34"
+1937-1971 spi: miso-data: "35"
+1973-2007 spi: miso-data: "36"
+2010-2045 spi: miso-data: "37"
+2046-2080 spi: miso-data: "38"
+2083-2116 spi: miso-data: "39"
+2119-2153 spi: miso-data: "3A"
+2155-2189 spi: miso-data: "3B"
+2192-2227 spi: miso-data: "3C"
+2228-2262 spi: miso-data: "3D"
+2264-2298 spi: miso-data: "3E"
+2301-2336 spi: miso-data: "3F"
+2337-2371 spi: miso-data: "40"
+2373-2407 spi: miso-data: "41"
+2410-2445 spi: miso-data: "42"
+2446-2480 spi: miso-data: "43"
+2483-2516 spi: miso-data: "44"
+2519-2554 spi: miso-data: "45"
+2555-2589 spi: miso-data: "46"
+2592-2625 spi: miso-data: "47"
+2628-2662 spi: miso-data: "48"
+2664-2698 spi: miso-data: "49"
+2701-2736 spi: miso-data: "4A"
+2737-2771 spi: miso-data: "4B"
+2773-2807 spi: miso-data: "4C"
+2810-2845 spi: miso-data: "4D"
+2846-2880 spi: miso-data: "4E"
+2882-2916 spi: miso-data: "4F"
+2919-2954 spi: miso-data: "50"
+2955-2989 spi: miso-data: "51"
+2992-3025 spi: miso-data: "52"
+3028-3062 spi: miso-data: "53"
+3064-3098 spi: miso-data: "54"
+3101-3134 spi: miso-data: "55"
+3137-3171 spi: miso-data: "56"
+3173-3207 spi: miso-data: "57"
+3210-3245 spi: miso-data: "58"
+3246-3280 spi: miso-data: "59"
+3282-3316 spi: miso-data: "5A"
+3319-3354 spi: miso-data: "5B"
+3355-3389 spi: miso-data: "5C"
+3391-3425 spi: miso-data: "5D"
+3428-3463 spi: miso-data: "5E"
+3464-3498 spi: miso-data: "5F"
+3501-3534 spi: miso-data: "60"
+3537-3571 spi: miso-data: "61"
+3573-3607 spi: miso-data: "62"
+3610-3645 spi: miso-data: "63"
+3646-3680 spi: miso-data: "64"
+3682-3716 spi: miso-data: "65"
+3719-3754 spi: miso-data: "66"
+3755-3789 spi: miso-data: "67"
+3791-3825 spi: miso-data: "68"
+3828-3863 spi: miso-data: "69"
+3864-3898 spi: miso-data: "6A"
+3901-3934 spi: miso-data: "6B"
+3937-3971 spi: miso-data: "6C"
+3973-4007 spi: miso-data: "6D"
+4010-4045 spi: miso-data: "6E"
+4046-4080 spi: miso-data: "6F"
+4082-4116 spi: miso-data: "70"
+4119-4154 spi: miso-data: "71"
+4155-4189 spi: miso-data: "72"
+4191-4225 spi: miso-data: "73"
+4228-4263 spi: miso-data: "74"
+4264-4298 spi: miso-data: "75"
+4301-4334 spi: miso-data: "76"
+4337-4372 spi: miso-data: "77"
+4373-4407 spi: miso-data: "78"
+4410-4443 spi: miso-data: "79"
+4446-4480 spi: miso-data: "7A"
+4482-4516 spi: miso-data: "7B"
+4519-4554 spi: miso-data: "7C"
+4555-4589 spi: miso-data: "7D"
+4591-4625 spi: miso-data: "7E"
+4628-4663 spi: miso-data: "7F"
+4664-4698 spi: miso-data: "80"
+4700-4734 spi: miso-data: "81"
+4737-4772 spi: miso-data: "82"
+4773-4807 spi: miso-data: "83"
+4810-4843 spi: miso-data: "84"
+4846-4880 spi: miso-data: "85"
+4882-4916 spi: miso-data: "86"
+4919-4954 spi: miso-data: "87"
+4955-4989 spi: miso-data: "88"
+4991-5025 spi: miso-data: "89"
+5028-5063 spi: miso-data: "8A"
+5064-5098 spi: miso-data: "8B"
+5100-5134 spi: miso-data: "8C"
+5137-5172 spi: miso-data: "8D"
+5173-5207 spi: miso-data: "8E"
+5210-5243 spi: miso-data: "8F"
+5246-5280 spi: miso-data: "90"
+5282-5316 spi: miso-data: "91"
+5319-5352 spi: miso-data: "92"
+5355-5389 spi: miso-data: "93"
+5391-5425 spi: miso-data: "94"
+5428-5463 spi: miso-data: "95"
+5464-5498 spi: miso-data: "96"
+5500-5534 spi: miso-data: "97"
+5537-5572 spi: miso-data: "98"
+5573-5607 spi: miso-data: "99"
+5610-5643 spi: miso-data: "9A"
+5646-5681 spi: miso-data: "9B"
+5682-5716 spi: miso-data: "9C"
+5719-5752 spi: miso-data: "9D"
+5755-5789 spi: miso-data: "9E"
+5791-5825 spi: miso-data: "9F"
+5828-5863 spi: miso-data: "A0"
+5864-5898 spi: miso-data: "A1"
+5900-5934 spi: miso-data: "A2"
+5937-5972 spi: miso-data: "A3"
+5973-6007 spi: miso-data: "A4"
+6009-6043 spi: miso-data: "A5"
+6046-6081 spi: miso-data: "A6"
+6082-6116 spi: miso-data: "A7"
+6119-6152 spi: miso-data: "A8"
+6155-6189 spi: miso-data: "A9"
+6191-6225 spi: miso-data: "AA"
+6228-6263 spi: miso-data: "AB"
+6264-6298 spi: miso-data: "AC"
+6300-6334 spi: miso-data: "AD"
+6337-6372 spi: miso-data: "AE"
+6373-6407 spi: miso-data: "AF"
+6409-6443 spi: miso-data: "B0"
+6446-6481 spi: miso-data: "B1"
+6482-6516 spi: miso-data: "B2"
+6519-6552 spi: miso-data: "B3"
+6555-6590 spi: miso-data: "B4"
+6591-6625 spi: miso-data: "B5"
+6628-6661 spi: miso-data: "B6"
+6664-6698 spi: miso-data: "B7"
+6700-6734 spi: miso-data: "B8"
+6737-6772 spi: miso-data: "B9"
+6773-6807 spi: miso-data: "BA"
+6809-6843 spi: miso-data: "BB"
+6846-6881 spi: miso-data: "BC"
+6882-6916 spi: miso-data: "BD"
+6918-6952 spi: miso-data: "BE"
+6955-6990 spi: miso-data: "BF"
+6991-7025 spi: miso-data: "C0"
+7028-7061 spi: miso-data: "C1"
+7064-7098 spi: miso-data: "C2"
+7100-7134 spi: miso-data: "C3"
+7137-7172 spi: miso-data: "C4"
+7173-7207 spi: miso-data: "C5"
+7209-7243 spi: miso-data: "C6"
+7246-7281 spi: miso-data: "C7"
+7282-7316 spi: miso-data: "C8"
+7318-7352 spi: miso-data: "C9"
+7355-7390 spi: miso-data: "CA"
+7391-7425 spi: miso-data: "CB"
+7428-7461 spi: miso-data: "CC"
+7464-7499 spi: miso-data: "CD"
+7500-7534 spi: miso-data: "CE"
+7537-7570 spi: miso-data: "CF"
+7573-7607 spi: miso-data: "D0"
+7609-7643 spi: miso-data: "D1"
+7646-7681 spi: miso-data: "D2"
+7682-7716 spi: miso-data: "D3"
+7718-7752 spi: miso-data: "D4"
+7755-7790 spi: miso-data: "D5"
+7791-7825 spi: miso-data: "D6"
+7827-7861 spi: miso-data: "D7"
+7864-7899 spi: miso-data: "D8"
+7900-7934 spi: miso-data: "D9"
+7937-7970 spi: miso-data: "DA"
+7973-8007 spi: miso-data: "DB"
+8009-8043 spi: miso-data: "DC"
+8046-8081 spi: miso-data: "DD"
+8082-8116 spi: miso-data: "DE"
+8118-8152 spi: miso-data: "DF"
+8155-8190 spi: miso-data: "E0"
+8191-8225 spi: miso-data: "E1"
+8227-8261 spi: miso-data: "E2"
+8264-8299 spi: miso-data: "E3"
+8300-8334 spi: miso-data: "E4"
+8337-8370 spi: miso-data: "E5"
+8373-8408 spi: miso-data: "E6"
+8409-8443 spi: miso-data: "E7"
+8446-8479 spi: miso-data: "E8"
+8482-8516 spi: miso-data: "E9"
+8518-8552 spi: miso-data: "EA"
+8555-8590 spi: miso-data: "EB"
+8591-8625 spi: miso-data: "EC"
+8627-8661 spi: miso-data: "ED"
+8664-8699 spi: miso-data: "EE"
+8700-8734 spi: miso-data: "EF"
+8736-8770 spi: miso-data: "F0"
+8773-8808 spi: miso-data: "F1"
+8809-8843 spi: miso-data: "F2"
+8846-8879 spi: miso-data: "F3"
+8882-8916 spi: miso-data: "F4"
+8918-8952 spi: miso-data: "F5"
+8955-8990 spi: miso-data: "F6"
+8991-9025 spi: miso-data: "F7"
+9027-9061 spi: miso-data: "F8"
+9064-9099 spi: miso-data: "F9"
+9100-9134 spi: miso-data: "FA"
+9136-9170 spi: miso-data: "FB"
+9173-9208 spi: miso-data: "FC"
+9209-9243 spi: miso-data: "FD"
+9246-9279 spi: miso-data: "FE"
+9282-9316 spi: miso-data: "FF"
diff --git a/decoders/spi/test/spi_count_mosi_lsb.output b/decoders/spi/test/spi_count_mosi_lsb.output
new file mode 100644
index 0000000..0cbfba4
--- /dev/null
+++ b/decoders/spi/test/spi_count_mosi_lsb.output
@@ -0,0 +1,256 @@
+9-44 spi: mosi-data: "00"
+45-79 spi: mosi-data: "01"
+82-115 spi: mosi-data: "02"
+118-153 spi: mosi-data: "03"
+154-188 spi: mosi-data: "04"
+191-224 spi: mosi-data: "05"
+227-261 spi: mosi-data: "06"
+263-297 spi: mosi-data: "07"
+300-335 spi: mosi-data: "08"
+336-370 spi: mosi-data: "09"
+372-406 spi: mosi-data: "0A"
+409-444 spi: mosi-data: "0B"
+445-479 spi: mosi-data: "0C"
+481-515 spi: mosi-data: "0D"
+518-553 spi: mosi-data: "0E"
+554-588 spi: mosi-data: "0F"
+591-624 spi: mosi-data: "10"
+627-661 spi: mosi-data: "11"
+663-697 spi: mosi-data: "12"
+700-735 spi: mosi-data: "13"
+736-770 spi: mosi-data: "14"
+772-806 spi: mosi-data: "15"
+809-844 spi: mosi-data: "16"
+845-879 spi: mosi-data: "17"
+881-915 spi: mosi-data: "18"
+918-953 spi: mosi-data: "19"
+954-988 spi: mosi-data: "1A"
+991-1024 spi: mosi-data: "1B"
+1027-1061 spi: mosi-data: "1C"
+1063-1097 spi: mosi-data: "1D"
+1100-1133 spi: mosi-data: "1E"
+1136-1170 spi: mosi-data: "1F"
+1172-1206 spi: mosi-data: "20"
+1209-1244 spi: mosi-data: "21"
+1245-1279 spi: mosi-data: "22"
+1281-1315 spi: mosi-data: "23"
+1318-1353 spi: mosi-data: "24"
+1354-1388 spi: mosi-data: "25"
+1390-1424 spi: mosi-data: "26"
+1427-1462 spi: mosi-data: "27"
+1463-1497 spi: mosi-data: "28"
+1500-1533 spi: mosi-data: "29"
+1536-1570 spi: mosi-data: "2A"
+1572-1606 spi: mosi-data: "2B"
+1609-1644 spi: mosi-data: "2C"
+1645-1679 spi: mosi-data: "2D"
+1681-1715 spi: mosi-data: "2E"
+1718-1753 spi: mosi-data: "2F"
+1754-1788 spi: mosi-data: "30"
+1790-1824 spi: mosi-data: "31"
+1827-1862 spi: mosi-data: "32"
+1863-1897 spi: mosi-data: "33"
+1900-1933 spi: mosi-data: "34"
+1936-1970 spi: mosi-data: "35"
+1972-2006 spi: mosi-data: "36"
+2009-2044 spi: mosi-data: "37"
+2045-2079 spi: mosi-data: "38"
+2081-2115 spi: mosi-data: "39"
+2118-2153 spi: mosi-data: "3A"
+2154-2188 spi: mosi-data: "3B"
+2190-2224 spi: mosi-data: "3C"
+2227-2262 spi: mosi-data: "3D"
+2263-2297 spi: mosi-data: "3E"
+2300-2333 spi: mosi-data: "3F"
+2336-2371 spi: mosi-data: "40"
+2372-2406 spi: mosi-data: "41"
+2409-2442 spi: mosi-data: "42"
+2445-2479 spi: mosi-data: "43"
+2481-2515 spi: mosi-data: "44"
+2518-2553 spi: mosi-data: "45"
+2554-2588 spi: mosi-data: "46"
+2590-2624 spi: mosi-data: "47"
+2627-2662 spi: mosi-data: "48"
+2663-2697 spi: mosi-data: "49"
+2699-2733 spi: mosi-data: "4A"
+2736-2771 spi: mosi-data: "4B"
+2772-2806 spi: mosi-data: "4C"
+2809-2842 spi: mosi-data: "4D"
+2845-2879 spi: mosi-data: "4E"
+2881-2915 spi: mosi-data: "4F"
+2918-2953 spi: mosi-data: "50"
+2954-2988 spi: mosi-data: "51"
+2990-3024 spi: mosi-data: "52"
+3027-3062 spi: mosi-data: "53"
+3063-3097 spi: mosi-data: "54"
+3099-3133 spi: mosi-data: "55"
+3136-3171 spi: mosi-data: "56"
+3172-3206 spi: mosi-data: "57"
+3209-3242 spi: mosi-data: "58"
+3245-3280 spi: mosi-data: "59"
+3281-3315 spi: mosi-data: "5A"
+3318-3351 spi: mosi-data: "5B"
+3354-3388 spi: mosi-data: "5C"
+3390-3424 spi: mosi-data: "5D"
+3427-3462 spi: mosi-data: "5E"
+3463-3497 spi: mosi-data: "5F"
+3499-3533 spi: mosi-data: "60"
+3536-3571 spi: mosi-data: "61"
+3572-3606 spi: mosi-data: "62"
+3608-3642 spi: mosi-data: "63"
+3645-3680 spi: mosi-data: "64"
+3681-3715 spi: mosi-data: "65"
+3718-3751 spi: mosi-data: "66"
+3754-3788 spi: mosi-data: "67"
+3790-3824 spi: mosi-data: "68"
+3827-3862 spi: mosi-data: "69"
+3863-3897 spi: mosi-data: "6A"
+3899-3933 spi: mosi-data: "6B"
+3936-3971 spi: mosi-data: "6C"
+3972-4006 spi: mosi-data: "6D"
+4008-4042 spi: mosi-data: "6E"
+4045-4080 spi: mosi-data: "6F"
+4081-4115 spi: mosi-data: "70"
+4118-4151 spi: mosi-data: "71"
+4154-4189 spi: mosi-data: "72"
+4190-4224 spi: mosi-data: "73"
+4227-4260 spi: mosi-data: "74"
+4263-4297 spi: mosi-data: "75"
+4299-4333 spi: mosi-data: "76"
+4336-4371 spi: mosi-data: "77"
+4372-4406 spi: mosi-data: "78"
+4408-4442 spi: mosi-data: "79"
+4445-4480 spi: mosi-data: "7A"
+4481-4515 spi: mosi-data: "7B"
+4517-4551 spi: mosi-data: "7C"
+4554-4589 spi: mosi-data: "7D"
+4590-4624 spi: mosi-data: "7E"
+4627-4660 spi: mosi-data: "7F"
+4663-4697 spi: mosi-data: "80"
+4699-4733 spi: mosi-data: "81"
+4736-4771 spi: mosi-data: "82"
+4772-4806 spi: mosi-data: "83"
+4808-4842 spi: mosi-data: "84"
+4845-4880 spi: mosi-data: "85"
+4881-4915 spi: mosi-data: "86"
+4917-4951 spi: mosi-data: "87"
+4954-4989 spi: mosi-data: "88"
+4990-5024 spi: mosi-data: "89"
+5027-5060 spi: mosi-data: "8A"
+5063-5097 spi: mosi-data: "8B"
+5099-5133 spi: mosi-data: "8C"
+5136-5169 spi: mosi-data: "8D"
+5172-5206 spi: mosi-data: "8E"
+5208-5242 spi: mosi-data: "8F"
+5245-5280 spi: mosi-data: "90"
+5281-5315 spi: mosi-data: "91"
+5317-5351 spi: mosi-data: "92"
+5354-5389 spi: mosi-data: "93"
+5390-5424 spi: mosi-data: "94"
+5427-5460 spi: mosi-data: "95"
+5463-5498 spi: mosi-data: "96"
+5499-5533 spi: mosi-data: "97"
+5536-5569 spi: mosi-data: "98"
+5572-5606 spi: mosi-data: "99"
+5608-5642 spi: mosi-data: "9A"
+5645-5680 spi: mosi-data: "9B"
+5681-5715 spi: mosi-data: "9C"
+5717-5751 spi: mosi-data: "9D"
+5754-5789 spi: mosi-data: "9E"
+5790-5824 spi: mosi-data: "9F"
+5826-5860 spi: mosi-data: "A0"
+5863-5898 spi: mosi-data: "A1"
+5899-5933 spi: mosi-data: "A2"
+5936-5969 spi: mosi-data: "A3"
+5972-6006 spi: mosi-data: "A4"
+6008-6042 spi: mosi-data: "A5"
+6045-6080 spi: mosi-data: "A6"
+6081-6115 spi: mosi-data: "A7"
+6117-6151 spi: mosi-data: "A8"
+6154-6189 spi: mosi-data: "A9"
+6190-6224 spi: mosi-data: "AA"
+6226-6260 spi: mosi-data: "AB"
+6263-6298 spi: mosi-data: "AC"
+6299-6333 spi: mosi-data: "AD"
+6336-6369 spi: mosi-data: "AE"
+6372-6406 spi: mosi-data: "AF"
+6408-6442 spi: mosi-data: "B0"
+6445-6478 spi: mosi-data: "B1"
+6481-6515 spi: mosi-data: "B2"
+6517-6551 spi: mosi-data: "B3"
+6554-6589 spi: mosi-data: "B4"
+6590-6624 spi: mosi-data: "B5"
+6626-6660 spi: mosi-data: "B6"
+6663-6698 spi: mosi-data: "B7"
+6699-6733 spi: mosi-data: "B8"
+6736-6769 spi: mosi-data: "B9"
+6772-6807 spi: mosi-data: "BA"
+6808-6842 spi: mosi-data: "BB"
+6845-6878 spi: mosi-data: "BC"
+6881-6915 spi: mosi-data: "BD"
+6917-6951 spi: mosi-data: "BE"
+6954-6989 spi: mosi-data: "BF"
+6990-7024 spi: mosi-data: "C0"
+7026-7060 spi: mosi-data: "C1"
+7063-7098 spi: mosi-data: "C2"
+7099-7133 spi: mosi-data: "C3"
+7135-7169 spi: mosi-data: "C4"
+7172-7207 spi: mosi-data: "C5"
+7208-7242 spi: mosi-data: "C6"
+7245-7278 spi: mosi-data: "C7"
+7281-7315 spi: mosi-data: "C8"
+7317-7351 spi: mosi-data: "C9"
+7354-7389 spi: mosi-data: "CA"
+7390-7424 spi: mosi-data: "CB"
+7426-7460 spi: mosi-data: "CC"
+7463-7498 spi: mosi-data: "CD"
+7499-7533 spi: mosi-data: "CE"
+7535-7569 spi: mosi-data: "CF"
+7572-7607 spi: mosi-data: "D0"
+7608-7642 spi: mosi-data: "D1"
+7644-7678 spi: mosi-data: "D2"
+7681-7716 spi: mosi-data: "D3"
+7717-7751 spi: mosi-data: "D4"
+7754-7787 spi: mosi-data: "D5"
+7790-7824 spi: mosi-data: "D6"
+7826-7860 spi: mosi-data: "D7"
+7863-7898 spi: mosi-data: "D8"
+7899-7933 spi: mosi-data: "D9"
+7935-7969 spi: mosi-data: "DA"
+7972-8007 spi: mosi-data: "DB"
+8008-8042 spi: mosi-data: "DC"
+8044-8078 spi: mosi-data: "DD"
+8081-8116 spi: mosi-data: "DE"
+8117-8151 spi: mosi-data: "DF"
+8154-8187 spi: mosi-data: "E0"
+8190-8224 spi: mosi-data: "E1"
+8226-8260 spi: mosi-data: "E2"
+8263-8298 spi: mosi-data: "E3"
+8299-8333 spi: mosi-data: "E4"
+8335-8369 spi: mosi-data: "E5"
+8372-8407 spi: mosi-data: "E6"
+8408-8442 spi: mosi-data: "E7"
+8444-8478 spi: mosi-data: "E8"
+8481-8516 spi: mosi-data: "E9"
+8517-8551 spi: mosi-data: "EA"
+8554-8587 spi: mosi-data: "EB"
+8590-8625 spi: mosi-data: "EC"
+8626-8660 spi: mosi-data: "ED"
+8663-8696 spi: mosi-data: "EE"
+8699-8733 spi: mosi-data: "EF"
+8735-8769 spi: mosi-data: "F0"
+8772-8807 spi: mosi-data: "F1"
+8808-8842 spi: mosi-data: "F2"
+8844-8878 spi: mosi-data: "F3"
+8881-8916 spi: mosi-data: "F4"
+8917-8951 spi: mosi-data: "F5"
+8953-8987 spi: mosi-data: "F6"
+8990-9025 spi: mosi-data: "F7"
+9026-9060 spi: mosi-data: "F8"
+9063-9096 spi: mosi-data: "F9"
+9099-9133 spi: mosi-data: "FA"
+9135-9169 spi: mosi-data: "FB"
+9172-9207 spi: mosi-data: "FC"
+9208-9242 spi: mosi-data: "FD"
+9244-9278 spi: mosi-data: "FE"
+9281-9316 spi: mosi-data: "FF"
diff --git a/decoders/spi/test/spi_count_mosi_msb.output b/decoders/spi/test/spi_count_mosi_msb.output
new file mode 100644
index 0000000..cf31e06
--- /dev/null
+++ b/decoders/spi/test/spi_count_mosi_msb.output
@@ -0,0 +1,256 @@
+10-44 spi: mosi-data: "00"
+46-80 spi: mosi-data: "01"
+83-118 spi: mosi-data: "02"
+119-153 spi: mosi-data: "03"
+155-189 spi: mosi-data: "04"
+192-227 spi: mosi-data: "05"
+228-262 spi: mosi-data: "06"
+265-298 spi: mosi-data: "07"
+301-335 spi: mosi-data: "08"
+337-371 spi: mosi-data: "09"
+374-407 spi: mosi-data: "0A"
+410-444 spi: mosi-data: "0B"
+446-480 spi: mosi-data: "0C"
+483-518 spi: mosi-data: "0D"
+519-553 spi: mosi-data: "0E"
+555-589 spi: mosi-data: "0F"
+592-627 spi: mosi-data: "10"
+628-662 spi: mosi-data: "11"
+664-698 spi: mosi-data: "12"
+701-736 spi: mosi-data: "13"
+737-771 spi: mosi-data: "14"
+774-807 spi: mosi-data: "15"
+810-844 spi: mosi-data: "16"
+846-880 spi: mosi-data: "17"
+883-918 spi: mosi-data: "18"
+919-953 spi: mosi-data: "19"
+955-989 spi: mosi-data: "1A"
+992-1027 spi: mosi-data: "1B"
+1028-1062 spi: mosi-data: "1C"
+1064-1098 spi: mosi-data: "1D"
+1101-1136 spi: mosi-data: "1E"
+1137-1171 spi: mosi-data: "1F"
+1174-1207 spi: mosi-data: "20"
+1210-1244 spi: mosi-data: "21"
+1246-1280 spi: mosi-data: "22"
+1283-1318 spi: mosi-data: "23"
+1319-1353 spi: mosi-data: "24"
+1355-1389 spi: mosi-data: "25"
+1392-1427 spi: mosi-data: "26"
+1428-1462 spi: mosi-data: "27"
+1464-1498 spi: mosi-data: "28"
+1501-1536 spi: mosi-data: "29"
+1537-1571 spi: mosi-data: "2A"
+1574-1607 spi: mosi-data: "2B"
+1610-1645 spi: mosi-data: "2C"
+1646-1680 spi: mosi-data: "2D"
+1683-1716 spi: mosi-data: "2E"
+1719-1753 spi: mosi-data: "2F"
+1755-1789 spi: mosi-data: "30"
+1792-1827 spi: mosi-data: "31"
+1828-1862 spi: mosi-data: "32"
+1864-1898 spi: mosi-data: "33"
+1901-1936 spi: mosi-data: "34"
+1937-1971 spi: mosi-data: "35"
+1973-2007 spi: mosi-data: "36"
+2010-2045 spi: mosi-data: "37"
+2046-2080 spi: mosi-data: "38"
+2083-2116 spi: mosi-data: "39"
+2119-2153 spi: mosi-data: "3A"
+2155-2189 spi: mosi-data: "3B"
+2192-2227 spi: mosi-data: "3C"
+2228-2262 spi: mosi-data: "3D"
+2264-2298 spi: mosi-data: "3E"
+2301-2336 spi: mosi-data: "3F"
+2337-2371 spi: mosi-data: "40"
+2373-2407 spi: mosi-data: "41"
+2410-2445 spi: mosi-data: "42"
+2446-2480 spi: mosi-data: "43"
+2483-2516 spi: mosi-data: "44"
+2519-2554 spi: mosi-data: "45"
+2555-2589 spi: mosi-data: "46"
+2592-2625 spi: mosi-data: "47"
+2628-2662 spi: mosi-data: "48"
+2664-2698 spi: mosi-data: "49"
+2701-2736 spi: mosi-data: "4A"
+2737-2771 spi: mosi-data: "4B"
+2773-2807 spi: mosi-data: "4C"
+2810-2845 spi: mosi-data: "4D"
+2846-2880 spi: mosi-data: "4E"
+2882-2916 spi: mosi-data: "4F"
+2919-2954 spi: mosi-data: "50"
+2955-2989 spi: mosi-data: "51"
+2992-3025 spi: mosi-data: "52"
+3028-3062 spi: mosi-data: "53"
+3064-3098 spi: mosi-data: "54"
+3101-3134 spi: mosi-data: "55"
+3137-3171 spi: mosi-data: "56"
+3173-3207 spi: mosi-data: "57"
+3210-3245 spi: mosi-data: "58"
+3246-3280 spi: mosi-data: "59"
+3282-3316 spi: mosi-data: "5A"
+3319-3354 spi: mosi-data: "5B"
+3355-3389 spi: mosi-data: "5C"
+3391-3425 spi: mosi-data: "5D"
+3428-3463 spi: mosi-data: "5E"
+3464-3498 spi: mosi-data: "5F"
+3501-3534 spi: mosi-data: "60"
+3537-3571 spi: mosi-data: "61"
+3573-3607 spi: mosi-data: "62"
+3610-3645 spi: mosi-data: "63"
+3646-3680 spi: mosi-data: "64"
+3682-3716 spi: mosi-data: "65"
+3719-3754 spi: mosi-data: "66"
+3755-3789 spi: mosi-data: "67"
+3791-3825 spi: mosi-data: "68"
+3828-3863 spi: mosi-data: "69"
+3864-3898 spi: mosi-data: "6A"
+3901-3934 spi: mosi-data: "6B"
+3937-3971 spi: mosi-data: "6C"
+3973-4007 spi: mosi-data: "6D"
+4010-4045 spi: mosi-data: "6E"
+4046-4080 spi: mosi-data: "6F"
+4082-4116 spi: mosi-data: "70"
+4119-4154 spi: mosi-data: "71"
+4155-4189 spi: mosi-data: "72"
+4191-4225 spi: mosi-data: "73"
+4228-4263 spi: mosi-data: "74"
+4264-4298 spi: mosi-data: "75"
+4301-4334 spi: mosi-data: "76"
+4337-4372 spi: mosi-data: "77"
+4373-4407 spi: mosi-data: "78"
+4410-4443 spi: mosi-data: "79"
+4446-4480 spi: mosi-data: "7A"
+4482-4516 spi: mosi-data: "7B"
+4519-4554 spi: mosi-data: "7C"
+4555-4589 spi: mosi-data: "7D"
+4591-4625 spi: mosi-data: "7E"
+4628-4663 spi: mosi-data: "7F"
+4664-4698 spi: mosi-data: "80"
+4700-4734 spi: mosi-data: "81"
+4737-4772 spi: mosi-data: "82"
+4773-4807 spi: mosi-data: "83"
+4810-4843 spi: mosi-data: "84"
+4846-4880 spi: mosi-data: "85"
+4882-4916 spi: mosi-data: "86"
+4919-4954 spi: mosi-data: "87"
+4955-4989 spi: mosi-data: "88"
+4991-5025 spi: mosi-data: "89"
+5028-5063 spi: mosi-data: "8A"
+5064-5098 spi: mosi-data: "8B"
+5100-5134 spi: mosi-data: "8C"
+5137-5172 spi: mosi-data: "8D"
+5173-5207 spi: mosi-data: "8E"
+5210-5243 spi: mosi-data: "8F"
+5246-5280 spi: mosi-data: "90"
+5282-5316 spi: mosi-data: "91"
+5319-5352 spi: mosi-data: "92"
+5355-5389 spi: mosi-data: "93"
+5391-5425 spi: mosi-data: "94"
+5428-5463 spi: mosi-data: "95"
+5464-5498 spi: mosi-data: "96"
+5500-5534 spi: mosi-data: "97"
+5537-5572 spi: mosi-data: "98"
+5573-5607 spi: mosi-data: "99"
+5610-5643 spi: mosi-data: "9A"
+5646-5681 spi: mosi-data: "9B"
+5682-5716 spi: mosi-data: "9C"
+5719-5752 spi: mosi-data: "9D"
+5755-5789 spi: mosi-data: "9E"
+5791-5825 spi: mosi-data: "9F"
+5828-5863 spi: mosi-data: "A0"
+5864-5898 spi: mosi-data: "A1"
+5900-5934 spi: mosi-data: "A2"
+5937-5972 spi: mosi-data: "A3"
+5973-6007 spi: mosi-data: "A4"
+6009-6043 spi: mosi-data: "A5"
+6046-6081 spi: mosi-data: "A6"
+6082-6116 spi: mosi-data: "A7"
+6119-6152 spi: mosi-data: "A8"
+6155-6189 spi: mosi-data: "A9"
+6191-6225 spi: mosi-data: "AA"
+6228-6263 spi: mosi-data: "AB"
+6264-6298 spi: mosi-data: "AC"
+6300-6334 spi: mosi-data: "AD"
+6337-6372 spi: mosi-data: "AE"
+6373-6407 spi: mosi-data: "AF"
+6409-6443 spi: mosi-data: "B0"
+6446-6481 spi: mosi-data: "B1"
+6482-6516 spi: mosi-data: "B2"
+6519-6552 spi: mosi-data: "B3"
+6555-6590 spi: mosi-data: "B4"
+6591-6625 spi: mosi-data: "B5"
+6628-6661 spi: mosi-data: "B6"
+6664-6698 spi: mosi-data: "B7"
+6700-6734 spi: mosi-data: "B8"
+6737-6772 spi: mosi-data: "B9"
+6773-6807 spi: mosi-data: "BA"
+6809-6843 spi: mosi-data: "BB"
+6846-6881 spi: mosi-data: "BC"
+6882-6916 spi: mosi-data: "BD"
+6918-6952 spi: mosi-data: "BE"
+6955-6990 spi: mosi-data: "BF"
+6991-7025 spi: mosi-data: "C0"
+7028-7061 spi: mosi-data: "C1"
+7064-7098 spi: mosi-data: "C2"
+7100-7134 spi: mosi-data: "C3"
+7137-7172 spi: mosi-data: "C4"
+7173-7207 spi: mosi-data: "C5"
+7209-7243 spi: mosi-data: "C6"
+7246-7281 spi: mosi-data: "C7"
+7282-7316 spi: mosi-data: "C8"
+7318-7352 spi: mosi-data: "C9"
+7355-7390 spi: mosi-data: "CA"
+7391-7425 spi: mosi-data: "CB"
+7428-7461 spi: mosi-data: "CC"
+7464-7499 spi: mosi-data: "CD"
+7500-7534 spi: mosi-data: "CE"
+7537-7570 spi: mosi-data: "CF"
+7573-7607 spi: mosi-data: "D0"
+7609-7643 spi: mosi-data: "D1"
+7646-7681 spi: mosi-data: "D2"
+7682-7716 spi: mosi-data: "D3"
+7718-7752 spi: mosi-data: "D4"
+7755-7790 spi: mosi-data: "D5"
+7791-7825 spi: mosi-data: "D6"
+7827-7861 spi: mosi-data: "D7"
+7864-7899 spi: mosi-data: "D8"
+7900-7934 spi: mosi-data: "D9"
+7937-7970 spi: mosi-data: "DA"
+7973-8007 spi: mosi-data: "DB"
+8009-8043 spi: mosi-data: "DC"
+8046-8081 spi: mosi-data: "DD"
+8082-8116 spi: mosi-data: "DE"
+8118-8152 spi: mosi-data: "DF"
+8155-8190 spi: mosi-data: "E0"
+8191-8225 spi: mosi-data: "E1"
+8227-8261 spi: mosi-data: "E2"
+8264-8299 spi: mosi-data: "E3"
+8300-8334 spi: mosi-data: "E4"
+8337-8370 spi: mosi-data: "E5"
+8373-8408 spi: mosi-data: "E6"
+8409-8443 spi: mosi-data: "E7"
+8446-8479 spi: mosi-data: "E8"
+8482-8516 spi: mosi-data: "E9"
+8518-8552 spi: mosi-data: "EA"
+8555-8590 spi: mosi-data: "EB"
+8591-8625 spi: mosi-data: "EC"
+8627-8661 spi: mosi-data: "ED"
+8664-8699 spi: mosi-data: "EE"
+8700-8734 spi: mosi-data: "EF"
+8736-8770 spi: mosi-data: "F0"
+8773-8808 spi: mosi-data: "F1"
+8809-8843 spi: mosi-data: "F2"
+8846-8879 spi: mosi-data: "F3"
+8882-8916 spi: mosi-data: "F4"
+8918-8952 spi: mosi-data: "F5"
+8955-8990 spi: mosi-data: "F6"
+8991-9025 spi: mosi-data: "F7"
+9027-9061 spi: mosi-data: "F8"
+9064-9099 spi: mosi-data: "F9"
+9100-9134 spi: mosi-data: "FA"
+9136-9170 spi: mosi-data: "FB"
+9173-9208 spi: mosi-data: "FC"
+9209-9243 spi: mosi-data: "FD"
+9246-9279 spi: mosi-data: "FE"
+9282-9316 spi: mosi-data: "FF"
diff --git a/decoders/spi/test/test.conf b/decoders/spi/test/test.conf
index e08b788..57e0be7 100644
--- a/decoders/spi/test/test.conf
+++ b/decoders/spi/test/test.conf
@@ -11,3 +11,23 @@ test mx25l1605d_probe
output spi annotation class miso-data match mx25l1605d_probe_miso.output
output spi annotation match mx25l1605d_probe.output
+test count_mosi_msb
+ protocol-decoder spi channel cs=1 channel clk=0 channel mosi=2
+ input spi/spi-count-msb.sr
+ output spi annotation class mosi-data match spi_count_mosi_msb.output
+
+test count_miso_msb
+ protocol-decoder spi channel cs=1 channel clk=0 channel miso=2
+ input spi/spi-count-msb.sr
+ output spi annotation class miso-data match spi_count_miso_msb.output
+
+test count_mosi_lsb
+ protocol-decoder spi channel cs=1 channel clk=0 channel mosi=2 option bitorder=lsb-first
+ input spi/spi-count-lsb.sr
+ output spi annotation class mosi-data match spi_count_mosi_lsb.output
+
+test count_miso_lsb
+ protocol-decoder spi channel cs=1 channel clk=0 channel miso=2 option bitorder=lsb-first
+ input spi/spi-count-lsb.sr
+ output spi annotation class mosi-data match spi_count_miso_lsb.output
+