]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/usb_signalling/test.conf
usb*: Add a lot more test-cases.
[sigrok-test.git] / decoder / test / usb_signalling / test.conf
index dab800edd57f1823b4d29904a76a5d59c86be7ef..f7c5a7bf4ddd1addaac10bbfb495948493f10142 100644 (file)
@@ -3,21 +3,78 @@ test logitech_rx250_leftclick
        input usb/hid/mouse/logitech_rx250/logitech_rx250_leftclick.sr
        output usb_signalling annotation match logitech_rx250_leftclick.output
 
+# Same output as above.
+test logitech_rx250_leftclick_automatic
+       protocol-decoder usb_signalling channel dp=0 channel dm=1 option signalling=automatic
+       input usb/hid/mouse/logitech_rx250/logitech_rx250_leftclick.sr
+       output usb_signalling annotation match logitech_rx250_leftclick.output
+
 test olimex_stm32-h103_usb_hid
        protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=full-speed
        input usb/hid/mouse/olimex_stm32-h103_usb_hid/olimex_stm32-h103_usb_hid.sr
        output usb_signalling annotation match olimex_stm32-h103_usb_hid.output
 
+# Same output as above.
+test olimex_stm32-h103_usb_hid_automatic
+       protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=automatic
+       input usb/hid/mouse/olimex_stm32-h103_usb_hid/olimex_stm32-h103_usb_hid.sr
+       output usb_signalling annotation match olimex_stm32-h103_usb_hid.output
+
 test mk220_snippet
        protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=full-speed
        input usb/hid/keyboard_mouse_combo/logitech_mk220/mk220_snippet.sr
        output usb_signalling annotation match mk220_snippet.output
 
+# NOT the same output as above!
+test mk220_snippet_automatic
+       protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=automatic
+       input usb/hid/keyboard_mouse_combo/logitech_mk220/mk220_snippet.sr
+       output usb_signalling annotation match mk220_snippet_automatic.output
+
 test rt-mwk01_snippet
        protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=low-speed
        input usb/hid/keyboard_mouse_combo/riitek_rt-mwk01/rt-mwk01_snippet.sr
        output usb_signalling annotation match rt-mwk01_snippet.output
 
+# Same output as above.
+test rt-mwk01_snippet_automatic
+       protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=automatic
+       input usb/hid/keyboard_mouse_combo/riitek_rt-mwk01/rt-mwk01_snippet.sr
+       output usb_signalling annotation match rt-mwk01_snippet.output
+
+test usb_reset_and_setup_lowspeed
+       protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=low-speed
+       input usb/setup/usb_reset_and_setup_lowspeed.sr
+       output usb_signalling annotation match usb_reset_and_setup_lowspeed.output
+
+# Same output as above.
+test usb_reset_and_setup_lowspeed_automatic
+       protocol-decoder usb_signalling channel dp=1 channel dm=0 option signalling=automatic
+       input usb/setup/usb_reset_and_setup_lowspeed.sr
+       output usb_signalling annotation match usb_reset_and_setup_lowspeed.output
+
+test voltcraft_vc820_usb_ok
+       protocol-decoder usb_signalling channel dp=7 channel dm=6 option signalling=full-speed
+       input usb/hid/dmm/voltcraft_vc820/voltcraft_vc820_usb_ok.sr
+       output usb_signalling annotation match voltcraft_vc820_usb_ok.output
+
+# Same output as above.
+test voltcraft_vc820_usb_ok_automatic
+       protocol-decoder usb_signalling channel dp=7 channel dm=6 option signalling=automatic
+       input usb/hid/dmm/voltcraft_vc820/voltcraft_vc820_usb_ok.sr
+       output usb_signalling annotation match voltcraft_vc820_usb_ok.output
+
+test voltcraft_vc820_usb_err
+       protocol-decoder usb_signalling channel dp=7 channel dm=6 option signalling=full-speed
+       input usb/hid/dmm/voltcraft_vc820/voltcraft_vc820_usb_err.sr
+       output usb_signalling annotation match voltcraft_vc820_usb_err.output
+
+# NOT the same output as above!
+test voltcraft_vc820_usb_err_automatic
+       protocol-decoder usb_signalling channel dp=7 channel dm=6 option signalling=automatic
+       input usb/hid/dmm/voltcraft_vc820/voltcraft_vc820_usb_err.sr
+       output usb_signalling annotation match voltcraft_vc820_usb_err_automatic.output
+
 test exception_samplerate
        protocol-decoder usb_signalling
        input misc/no-samplerate.sr