diff options
Diffstat (limited to 'decoder/test/i2c')
15 files changed, 154 insertions, 4 deletions
diff --git a/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_address_read b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_address_read new file mode 100644 index 0000000..b5f022a --- /dev/null +++ b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_address_read @@ -0,0 +1,4 @@ +3672971-3673948 i2c: 50 +3678040-3679017 i2c: 50 +3683108-3684085 i2c: 50 +3702711-3703688 i2c: 69 diff --git a/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_address_write b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_address_write new file mode 100644 index 0000000..807b8fc --- /dev/null +++ b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_address_write @@ -0,0 +1,5 @@ +3670623-3671600 i2c: 50 +3675691-3676668 i2c: 50 +3680760-3681737 i2c: 50 +3700363-3701339 i2c: 69 +3825244-3826221 i2c: 69 diff --git a/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_data_read b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_data_read new file mode 100644 index 0000000..b6a614b --- /dev/null +++ b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_data_read @@ -0,0 +1,19 @@ +3674070-3675047 i2c: 50 +3679139-3680116 i2c: 2d +3684208-3685184 i2c: 50 +3703810-3704787 i2c: 0f +3704909-3705886 i2c: 06 +3706008-3706985 i2c: ff +3707108-3708084 i2c: ff +3708207-3709184 i2c: ff +3709306-3710283 i2c: ff +3710405-3711382 i2c: ff +3711504-3712481 i2c: 51 +3712604-3713580 i2c: 86 +3713703-3714680 i2c: 0f +3714802-3715779 i2c: 08 +3715901-3716878 i2c: 01 +3717000-3717977 i2c: 88 +3718100-3719076 i2c: 0e +3719199-3720176 i2c: e5 +3720298-3721275 i2c: f7 diff --git a/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_data_write b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_data_write new file mode 100644 index 0000000..920f475 --- /dev/null +++ b/decoder/test/i2c/gigabyte_6vle_vxl_i2c.bin_data_write @@ -0,0 +1,30 @@ +3671722-3672699 i2c: 1b +3676791-3677768 i2c: 1e +3681859-3682836 i2c: 1d +3701462-3702440 i2c: 00 +3826343-3827320 i2c: 00 +3827442-3828419 i2c: 18 +3828541-3829518 i2c: ae +3829641-3830619 i2c: ff +3830740-3831717 i2c: ef +3831839-3832816 i2c: fb +3832938-3833915 i2c: 0f +3834037-3835014 i2c: c0 +3835137-3836115 i2c: f1 +3836236-3837213 i2c: 17 +3837335-3838312 i2c: 18 +3838434-3839411 i2c: 10 +3839533-3840510 i2c: 7a +3840633-3841611 i2c: 8c +3841732-3842709 i2c: 81 +3842831-3843808 i2c: 1f +3843930-3844907 i2c: 18 +3845029-3846006 i2c: 00 +3846129-3847107 i2c: 00 +3847228-3848205 i2c: 00 +3848327-3849304 i2c: 00 +3849426-3850403 i2c: 00 +3850525-3851502 i2c: 00 +3851625-3852603 i2c: 00 +3852724-3853701 i2c: 00 +3853823-3854800 i2c: 00 diff --git a/decoder/test/i2c/rtc_ds1307_200khz.bin_address_read b/decoder/test/i2c/rtc_ds1307_200khz.bin_address_read new file mode 100644 index 0000000..dc98b8b --- /dev/null +++ b/decoder/test/i2c/rtc_ds1307_200khz.bin_address_read @@ -0,0 +1,7 @@ +325-341 i2c: 68 +3610-3626 i2c: 68 +7531-7547 i2c: 68 +11468-11484 i2c: 68 +15402-15418 i2c: 68 +19361-19377 i2c: 68 +23301-23317 i2c: 68 diff --git a/decoder/test/i2c/rtc_ds1307_200khz.bin_address_write b/decoder/test/i2c/rtc_ds1307_200khz.bin_address_write new file mode 100644 index 0000000..f65ebc5 --- /dev/null +++ b/decoder/test/i2c/rtc_ds1307_200khz.bin_address_write @@ -0,0 +1,8 @@ +2-18 i2c: 68 +255-271 i2c: 68 +3550-3566 i2c: 68 +7472-7488 i2c: 68 +11408-11424 i2c: 68 +15334-15350 i2c: 68 +19255-19271 i2c: 68 +23214-23230 i2c: 68 diff --git a/decoder/test/i2c/rtc_ds1307_200khz.bin_data_read b/decoder/test/i2c/rtc_ds1307_200khz.bin_data_read new file mode 100644 index 0000000..be20ad3 --- /dev/null +++ b/decoder/test/i2c/rtc_ds1307_200khz.bin_data_read @@ -0,0 +1,49 @@ +343-359 i2c: 30 +361-377 i2c: 35 +379-395 i2c: 23 +397-413 i2c: 01 +415-431 i2c: 10 +433-449 i2c: 03 +451-467 i2c: 13 +3628-3644 i2c: 30 +3646-3662 i2c: 35 +3664-3680 i2c: 23 +3682-3698 i2c: 01 +3700-3716 i2c: 10 +3718-3734 i2c: 03 +3736-3752 i2c: 13 +7549-7565 i2c: 30 +7567-7583 i2c: 35 +7585-7601 i2c: 23 +7603-7619 i2c: 01 +7621-7637 i2c: 10 +7639-7655 i2c: 03 +7657-7673 i2c: 13 +11486-11502 i2c: 30 +11504-11520 i2c: 35 +11522-11538 i2c: 23 +11540-11556 i2c: 01 +11558-11574 i2c: 10 +11576-11592 i2c: 03 +11594-11610 i2c: 13 +15420-15436 i2c: 30 +15438-15454 i2c: 35 +15456-15472 i2c: 23 +15474-15490 i2c: 01 +15492-15508 i2c: 10 +15510-15526 i2c: 03 +15528-15544 i2c: 13 +19379-19395 i2c: 30 +19397-19413 i2c: 35 +19415-19431 i2c: 23 +19433-19449 i2c: 01 +19451-19467 i2c: 10 +19469-19485 i2c: 03 +19487-19503 i2c: 13 +23319-23335 i2c: 30 +23337-23353 i2c: 35 +23355-23371 i2c: 23 +23373-23389 i2c: 01 +23391-23407 i2c: 10 +23409-23425 i2c: 03 +23427-23443 i2c: 13 diff --git a/decoder/test/i2c/rtc_ds1307_200khz.bin_data_write b/decoder/test/i2c/rtc_ds1307_200khz.bin_data_write new file mode 100644 index 0000000..8964666 --- /dev/null +++ b/decoder/test/i2c/rtc_ds1307_200khz.bin_data_write @@ -0,0 +1,15 @@ +25-41 i2c: 00 +43-59 i2c: 30 +61-77 i2c: 35 +79-95 i2c: 23 +97-113 i2c: 01 +115-131 i2c: 10 +133-149 i2c: 03 +151-167 i2c: 13 +273-289 i2c: 00 +3568-3584 i2c: 00 +7490-7506 i2c: 00 +11426-11442 i2c: 00 +15352-15368 i2c: 00 +19274-19290 i2c: 00 +23265-23281 i2c: 00 diff --git a/decoder/test/i2c/test.conf b/decoder/test/i2c/test.conf index d9b1e74..a510acd 100644 --- a/decoder/test/i2c/test.conf +++ b/decoder/test/i2c/test.conf @@ -5,25 +5,35 @@ test rtc output i2c annotation class data-write match rtc_ds1307_200khz_data_write.output output i2c annotation match rtc_ds1307_200khz.output output i2c python match rtc_ds1307_200khz.python + output i2c binary class data-read match rtc_ds1307_200khz.bin_data_read + output i2c binary class data-write match rtc_ds1307_200khz.bin_data_write + output i2c binary class address-read match rtc_ds1307_200khz.bin_address_read + output i2c binary class address-write match rtc_ds1307_200khz.bin_address_write test motherboard protocol-decoder i2c channel scl=0 channel sda=3 input i2c/gigabyte_6vle-vxl_i2c/gigabyte_6vle_vxl_i2c.sr output i2c annotation match gigabyte_6vle_vxl_i2c.output output i2c python match gigabyte_6vle_vxl_i2c.python + output i2c binary class data-read match gigabyte_6vle_vxl_i2c.bin_data_read + output i2c binary class data-write match gigabyte_6vle_vxl_i2c.bin_data_write + output i2c binary class address-read match gigabyte_6vle_vxl_i2c.bin_address_read + output i2c binary class address-write match gigabyte_6vle_vxl_i2c.bin_address_write test xfp protocol-decoder i2c channel scl=0 channel sda=1 input i2c/network-transceivers/xfp.sr - output i2c binary class data-read match xfp_data_read.binary - output i2c binary class data-write match xfp_data_write.binary - output i2c binary class address-read match xfp_address_read.binary - output i2c binary class address-write match xfp_address_write.binary + output i2c binary class data-read match xfp.bin_data_read + output i2c binary class data-write match xfp.bin_data_write + output i2c binary class address-read match xfp.bin_address_read + output i2c binary class address-write match xfp.bin_address_write test wii_nunchuk_init protocol-decoder i2c channel scl=0 channel sda=1 input i2c/wii_nunchuk/wii_nunchuk_init.sr output i2c annotation match wii_nunchuk_init.output + output i2c binary class data-write match wii_nunchuk_init.bin_data_write + output i2c binary class address-write match wii_nunchuk_init.bin_address_write test exception_samplerate protocol-decoder i2c diff --git a/decoder/test/i2c/wii_nunchuk_init.bin_address_write b/decoder/test/i2c/wii_nunchuk_init.bin_address_write new file mode 100644 index 0000000..a9770be --- /dev/null +++ b/decoder/test/i2c/wii_nunchuk_init.bin_address_write @@ -0,0 +1 @@ +646069-646153 i2c: 52 diff --git a/decoder/test/i2c/wii_nunchuk_init.bin_data_write b/decoder/test/i2c/wii_nunchuk_init.bin_data_write new file mode 100644 index 0000000..a4ef06e --- /dev/null +++ b/decoder/test/i2c/wii_nunchuk_init.bin_data_write @@ -0,0 +1,2 @@ +646327-646410 i2c: 40 +646591-646673 i2c: 00 diff --git a/decoder/test/i2c/xfp_address_read.binary b/decoder/test/i2c/xfp.bin_address_read index c742aeb..c742aeb 100644 --- a/decoder/test/i2c/xfp_address_read.binary +++ b/decoder/test/i2c/xfp.bin_address_read diff --git a/decoder/test/i2c/xfp_address_write.binary b/decoder/test/i2c/xfp.bin_address_write index 43680ef..43680ef 100644 --- a/decoder/test/i2c/xfp_address_write.binary +++ b/decoder/test/i2c/xfp.bin_address_write diff --git a/decoder/test/i2c/xfp_data_read.binary b/decoder/test/i2c/xfp.bin_data_read index d399230..d399230 100644 --- a/decoder/test/i2c/xfp_data_read.binary +++ b/decoder/test/i2c/xfp.bin_data_read diff --git a/decoder/test/i2c/xfp_data_write.binary b/decoder/test/i2c/xfp.bin_data_write index 4805fab..4805fab 100644 --- a/decoder/test/i2c/xfp_data_write.binary +++ b/decoder/test/i2c/xfp.bin_data_write |