diff options
Diffstat (limited to 'decoders/i2c')
-rw-r--r-- | decoders/i2c/pd.py | 20 | ||||
-rw-r--r-- | decoders/i2c/test/gigabyte_6vle_vxl_i2c.output | 130 | ||||
-rw-r--r-- | decoders/i2c/test/rtc_ds1307_200khz.output | 181 | ||||
-rw-r--r-- | decoders/i2c/test/rtc_ds1307_200khz_data_read.output | 49 | ||||
-rw-r--r-- | decoders/i2c/test/rtc_ds1307_200khz_data_write.output | 15 | ||||
-rw-r--r-- | decoders/i2c/test/test.conf | 12 |
6 files changed, 397 insertions, 10 deletions
diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index 60e9c45..45b84e8 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -81,16 +81,16 @@ class Decoder(srd.Decoder): 'address_format': ['Displayed slave address format', 'shifted'], } annotations = [ - ['Start', 'Start condition'], - ['Repeat start', 'Repeat start condition'], - ['Stop', 'Stop condition'], - ['ACK', 'ACK'], - ['NACK', 'NACK'], - ['Address read', 'Address read'], - ['Address write', 'Address write'], - ['Data read', 'Data read'], - ['Data write', 'Data write'], - ['Warnings', 'Human-readable warnings'], + ['start', 'Start condition'], + ['repeat-start', 'Repeat start condition'], + ['stop', 'Stop condition'], + ['ack', 'ACK'], + ['nack', 'NACK'], + ['address-read', 'Address read'], + ['address-write', 'Address write'], + ['data-read', 'Data read'], + ['data-write', 'Data write'], + ['warnings', 'Human-readable warnings'], ] binary = ( 'Address read', diff --git a/decoders/i2c/test/gigabyte_6vle_vxl_i2c.output b/decoders/i2c/test/gigabyte_6vle_vxl_i2c.output new file mode 100644 index 0000000..2039e82 --- /dev/null +++ b/decoders/i2c/test/gigabyte_6vle_vxl_i2c.output @@ -0,0 +1,130 @@ +3670527-3670527 i2c: start: "Start" "S" +3670622-3671478 i2c: address-write: "Address write: 50" "AW: 50" "50" +3671600-3671600 i2c: ack: "ACK" "A" +3671721-3672577 i2c: data-write: "Data write: 1B" "DW: 1B" "1B" +3672699-3672699 i2c: ack: "ACK" "A" +3672881-3672881 i2c: repeat-start: "Start repeat" "Sr" +3672970-3673826 i2c: address-read: "Address read: 50" "AR: 50" "50" +3673948-3673948 i2c: ack: "ACK" "A" +3674069-3674925 i2c: data-read: "Data read: 50" "DR: 50" "50" +3675081-3675081 i2c: nack: "NACK" "N" +3675231-3675231 i2c: stop: "Stop" "P" +3675596-3675596 i2c: start: "Start" "S" +3675690-3676546 i2c: address-write: "Address write: 50" "AW: 50" "50" +3676669-3676669 i2c: ack: "ACK" "A" +3676790-3677646 i2c: data-write: "Data write: 1E" "DW: 1E" "1E" +3677768-3677768 i2c: ack: "ACK" "A" +3677950-3677950 i2c: repeat-start: "Start repeat" "Sr" +3678039-3678895 i2c: address-read: "Address read: 50" "AR: 50" "50" +3679017-3679017 i2c: ack: "ACK" "A" +3679138-3679994 i2c: data-read: "Data read: 2D" "DR: 2D" "2D" +3680149-3680149 i2c: nack: "NACK" "N" +3680299-3680299 i2c: stop: "Stop" "P" +3680665-3680665 i2c: start: "Start" "S" +3680759-3681615 i2c: address-write: "Address write: 50" "AW: 50" "50" +3681737-3681737 i2c: ack: "ACK" "A" +3681858-3682714 i2c: data-write: "Data write: 1D" "DW: 1D" "1D" +3682836-3682836 i2c: ack: "ACK" "A" +3683018-3683018 i2c: repeat-start: "Start repeat" "Sr" +3683107-3683963 i2c: address-read: "Address read: 50" "AR: 50" "50" +3684085-3684085 i2c: ack: "ACK" "A" +3684207-3685062 i2c: data-read: "Data read: 50" "DR: 50" "50" +3685218-3685218 i2c: nack: "NACK" "N" +3685368-3685368 i2c: stop: "Stop" "P" +3700267-3700267 i2c: start: "Start" "S" +3700362-3701217 i2c: address-write: "Address write: 69" "AW: 69" "69" +3701340-3701340 i2c: ack: "ACK" "A" +3701461-3702317 i2c: data-write: "Data write: 00" "DW: 00" "00" +3702439-3702439 i2c: ack: "ACK" "A" +3702621-3702621 i2c: repeat-start: "Start repeat" "Sr" +3702710-3703566 i2c: address-read: "Address read: 69" "AR: 69" "69" +3703688-3703688 i2c: ack: "ACK" "A" +3703809-3704665 i2c: data-read: "Data read: 0F" "DR: 0F" "0F" +3704787-3704787 i2c: ack: "ACK" "A" +3704908-3705764 i2c: data-read: "Data read: 06" "DR: 06" "06" +3705886-3705886 i2c: ack: "ACK" "A" +3706007-3706863 i2c: data-read: "Data read: FF" "DR: FF" "FF" +3706985-3706985 i2c: ack: "ACK" "A" +3707107-3707962 i2c: data-read: "Data read: FF" "DR: FF" "FF" +3708085-3708085 i2c: ack: "ACK" "A" +3708206-3709062 i2c: data-read: "Data read: FF" "DR: FF" "FF" +3709184-3709184 i2c: ack: "ACK" "A" +3709305-3710161 i2c: data-read: "Data read: FF" "DR: FF" "FF" +3710283-3710283 i2c: ack: "ACK" "A" +3710404-3711260 i2c: data-read: "Data read: FF" "DR: FF" "FF" +3711382-3711382 i2c: ack: "ACK" "A" +3711503-3712359 i2c: data-read: "Data read: 51" "DR: 51" "51" +3712481-3712481 i2c: ack: "ACK" "A" +3712603-3713458 i2c: data-read: "Data read: 86" "DR: 86" "86" +3713581-3713581 i2c: ack: "ACK" "A" +3713702-3714558 i2c: data-read: "Data read: 0F" "DR: 0F" "0F" +3714680-3714680 i2c: ack: "ACK" "A" +3714801-3715657 i2c: data-read: "Data read: 08" "DR: 08" "08" +3715779-3715779 i2c: ack: "ACK" "A" +3715900-3716756 i2c: data-read: "Data read: 01" "DR: 01" "01" +3716878-3716878 i2c: ack: "ACK" "A" +3716999-3717855 i2c: data-read: "Data read: 88" "DR: 88" "88" +3717977-3717977 i2c: ack: "ACK" "A" +3718099-3718954 i2c: data-read: "Data read: 0E" "DR: 0E" "0E" +3719077-3719077 i2c: ack: "ACK" "A" +3719198-3720054 i2c: data-read: "Data read: E5" "DR: E5" "E5" +3720176-3720176 i2c: ack: "ACK" "A" +3720297-3721153 i2c: data-read: "Data read: F7" "DR: F7" "F7" +3721308-3721308 i2c: nack: "NACK" "N" +3721458-3721458 i2c: stop: "Stop" "P" +3825148-3825148 i2c: start: "Start" "S" +3825243-3826099 i2c: address-write: "Address write: 69" "AW: 69" "69" +3826221-3826221 i2c: ack: "ACK" "A" +3826342-3827198 i2c: data-write: "Data write: 00" "DW: 00" "00" +3827320-3827320 i2c: ack: "ACK" "A" +3827441-3828297 i2c: data-write: "Data write: 18" "DW: 18" "18" +3828419-3828419 i2c: ack: "ACK" "A" +3828540-3829396 i2c: data-write: "Data write: AE" "DW: AE" "AE" +3829518-3829518 i2c: ack: "ACK" "A" +3829640-3830496 i2c: data-write: "Data write: FF" "DW: FF" "FF" +3830618-3830618 i2c: ack: "ACK" "A" +3830739-3831595 i2c: data-write: "Data write: EF" "DW: EF" "EF" +3831717-3831717 i2c: ack: "ACK" "A" +3831838-3832694 i2c: data-write: "Data write: FB" "DW: FB" "FB" +3832816-3832816 i2c: ack: "ACK" "A" +3832937-3833793 i2c: data-write: "Data write: 0F" "DW: 0F" "0F" +3833915-3833915 i2c: ack: "ACK" "A" +3834036-3834892 i2c: data-write: "Data write: C0" "DW: C0" "C0" +3835014-3835014 i2c: ack: "ACK" "A" +3835136-3835992 i2c: data-write: "Data write: F1" "DW: F1" "F1" +3836114-3836114 i2c: ack: "ACK" "A" +3836235-3837091 i2c: data-write: "Data write: 17" "DW: 17" "17" +3837213-3837213 i2c: ack: "ACK" "A" +3837334-3838190 i2c: data-write: "Data write: 18" "DW: 18" "18" +3838312-3838312 i2c: ack: "ACK" "A" +3838433-3839289 i2c: data-write: "Data write: 10" "DW: 10" "10" +3839411-3839411 i2c: ack: "ACK" "A" +3839532-3840388 i2c: data-write: "Data write: 7A" "DW: 7A" "7A" +3840510-3840510 i2c: ack: "ACK" "A" +3840632-3841488 i2c: data-write: "Data write: 8C" "DW: 8C" "8C" +3841610-3841610 i2c: ack: "ACK" "A" +3841731-3842587 i2c: data-write: "Data write: 81" "DW: 81" "81" +3842709-3842709 i2c: ack: "ACK" "A" +3842830-3843686 i2c: data-write: "Data write: 1F" "DW: 1F" "1F" +3843808-3843808 i2c: ack: "ACK" "A" +3843929-3844785 i2c: data-write: "Data write: 18" "DW: 18" "18" +3844907-3844907 i2c: ack: "ACK" "A" +3845028-3845884 i2c: data-write: "Data write: 00" "DW: 00" "00" +3846006-3846006 i2c: ack: "ACK" "A" +3846128-3846984 i2c: data-write: "Data write: 00" "DW: 00" "00" +3847106-3847106 i2c: ack: "ACK" "A" +3847227-3848083 i2c: data-write: "Data write: 00" "DW: 00" "00" +3848205-3848205 i2c: ack: "ACK" "A" +3848326-3849182 i2c: data-write: "Data write: 00" "DW: 00" "00" +3849304-3849304 i2c: ack: "ACK" "A" +3849425-3850281 i2c: data-write: "Data write: 00" "DW: 00" "00" +3850403-3850403 i2c: ack: "ACK" "A" +3850524-3851380 i2c: data-write: "Data write: 00" "DW: 00" "00" +3851502-3851502 i2c: ack: "ACK" "A" +3851624-3852480 i2c: data-write: "Data write: 00" "DW: 00" "00" +3852602-3852602 i2c: ack: "ACK" "A" +3852723-3853579 i2c: data-write: "Data write: 00" "DW: 00" "00" +3853701-3853701 i2c: ack: "ACK" "A" +3853822-3854678 i2c: data-write: "Data write: 00" "DW: 00" "00" +3854800-3854800 i2c: ack: "ACK" "A" +3854950-3854950 i2c: stop: "Stop" "P" diff --git a/decoders/i2c/test/rtc_ds1307_200khz.output b/decoders/i2c/test/rtc_ds1307_200khz.output new file mode 100644 index 0000000..f205406 --- /dev/null +++ b/decoders/i2c/test/rtc_ds1307_200khz.output @@ -0,0 +1,181 @@ +0-0 i2c: start: "Start" "S" +1-16 i2c: address-write: "Address write: 68" "AW: 68" "68" +18-18 i2c: ack: "ACK" "A" +24-39 i2c: data-write: "Data write: 00" "DW: 00" "00" +41-41 i2c: ack: "ACK" "A" +42-57 i2c: data-write: "Data write: 30" "DW: 30" "30" +59-59 i2c: ack: "ACK" "A" +60-75 i2c: data-write: "Data write: 35" "DW: 35" "35" +77-77 i2c: ack: "ACK" "A" +78-93 i2c: data-write: "Data write: 23" "DW: 23" "23" +95-95 i2c: ack: "ACK" "A" +96-111 i2c: data-write: "Data write: 01" "DW: 01" "01" +113-113 i2c: ack: "ACK" "A" +114-129 i2c: data-write: "Data write: 10" "DW: 10" "10" +131-131 i2c: ack: "ACK" "A" +132-147 i2c: data-write: "Data write: 03" "DW: 03" "03" +149-149 i2c: ack: "ACK" "A" +150-165 i2c: data-write: "Data write: 13" "DW: 13" "13" +167-167 i2c: ack: "ACK" "A" +171-171 i2c: stop: "Stop" "P" +253-253 i2c: start: "Start" "S" +254-269 i2c: address-write: "Address write: 68" "AW: 68" "68" +271-271 i2c: ack: "ACK" "A" +272-287 i2c: data-write: "Data write: 00" "DW: 00" "00" +289-289 i2c: ack: "ACK" "A" +323-323 i2c: repeat-start: "Start repeat" "Sr" +324-339 i2c: address-read: "Address read: 68" "AR: 68" "68" +341-341 i2c: ack: "ACK" "A" +342-357 i2c: data-read: "Data read: 30" "DR: 30" "30" +359-359 i2c: ack: "ACK" "A" +360-375 i2c: data-read: "Data read: 35" "DR: 35" "35" +377-377 i2c: ack: "ACK" "A" +378-393 i2c: data-read: "Data read: 23" "DR: 23" "23" +395-395 i2c: ack: "ACK" "A" +396-411 i2c: data-read: "Data read: 01" "DR: 01" "01" +413-413 i2c: ack: "ACK" "A" +414-429 i2c: data-read: "Data read: 10" "DR: 10" "10" +431-431 i2c: ack: "ACK" "A" +432-447 i2c: data-read: "Data read: 03" "DR: 03" "03" +449-449 i2c: ack: "ACK" "A" +450-465 i2c: data-read: "Data read: 13" "DR: 13" "13" +467-467 i2c: nack: "NACK" "N" +471-471 i2c: stop: "Stop" "P" +3548-3548 i2c: start: "Start" "S" +3549-3564 i2c: address-write: "Address write: 68" "AW: 68" "68" +3566-3566 i2c: ack: "ACK" "A" +3567-3582 i2c: data-write: "Data write: 00" "DW: 00" "00" +3584-3584 i2c: ack: "ACK" "A" +3608-3608 i2c: repeat-start: "Start repeat" "Sr" +3609-3624 i2c: address-read: "Address read: 68" "AR: 68" "68" +3626-3626 i2c: ack: "ACK" "A" +3627-3642 i2c: data-read: "Data read: 30" "DR: 30" "30" +3644-3644 i2c: ack: "ACK" "A" +3645-3660 i2c: data-read: "Data read: 35" "DR: 35" "35" +3662-3662 i2c: ack: "ACK" "A" +3663-3678 i2c: data-read: "Data read: 23" "DR: 23" "23" +3680-3680 i2c: ack: "ACK" "A" +3681-3696 i2c: data-read: "Data read: 01" "DR: 01" "01" +3698-3698 i2c: ack: "ACK" "A" +3699-3714 i2c: data-read: "Data read: 10" "DR: 10" "10" +3716-3716 i2c: ack: "ACK" "A" +3717-3732 i2c: data-read: "Data read: 03" "DR: 03" "03" +3734-3734 i2c: ack: "ACK" "A" +3735-3750 i2c: data-read: "Data read: 13" "DR: 13" "13" +3752-3752 i2c: nack: "NACK" "N" +3756-3756 i2c: stop: "Stop" "P" +7470-7470 i2c: start: "Start" "S" +7471-7486 i2c: address-write: "Address write: 68" "AW: 68" "68" +7488-7488 i2c: ack: "ACK" "A" +7489-7504 i2c: data-write: "Data write: 00" "DW: 00" "00" +7506-7506 i2c: ack: "ACK" "A" +7529-7529 i2c: repeat-start: "Start repeat" "Sr" +7530-7545 i2c: address-read: "Address read: 68" "AR: 68" "68" +7547-7547 i2c: ack: "ACK" "A" +7548-7563 i2c: data-read: "Data read: 30" "DR: 30" "30" +7565-7565 i2c: ack: "ACK" "A" +7566-7581 i2c: data-read: "Data read: 35" "DR: 35" "35" +7583-7583 i2c: ack: "ACK" "A" +7584-7599 i2c: data-read: "Data read: 23" "DR: 23" "23" +7601-7601 i2c: ack: "ACK" "A" +7602-7617 i2c: data-read: "Data read: 01" "DR: 01" "01" +7619-7619 i2c: ack: "ACK" "A" +7620-7635 i2c: data-read: "Data read: 10" "DR: 10" "10" +7637-7637 i2c: ack: "ACK" "A" +7638-7653 i2c: data-read: "Data read: 03" "DR: 03" "03" +7655-7655 i2c: ack: "ACK" "A" +7656-7671 i2c: data-read: "Data read: 13" "DR: 13" "13" +7673-7673 i2c: nack: "NACK" "N" +7677-7677 i2c: stop: "Stop" "P" +11405-11405 i2c: start: "Start" "S" +11407-11422 i2c: address-write: "Address write: 68" "AW: 68" "68" +11424-11424 i2c: ack: "ACK" "A" +11425-11440 i2c: data-write: "Data write: 00" "DW: 00" "00" +11442-11442 i2c: ack: "ACK" "A" +11466-11466 i2c: repeat-start: "Start repeat" "Sr" +11467-11482 i2c: address-read: "Address read: 68" "AR: 68" "68" +11484-11484 i2c: ack: "ACK" "A" +11485-11500 i2c: data-read: "Data read: 30" "DR: 30" "30" +11502-11502 i2c: ack: "ACK" "A" +11503-11518 i2c: data-read: "Data read: 35" "DR: 35" "35" +11520-11520 i2c: ack: "ACK" "A" +11521-11536 i2c: data-read: "Data read: 23" "DR: 23" "23" +11538-11538 i2c: ack: "ACK" "A" +11539-11554 i2c: data-read: "Data read: 01" "DR: 01" "01" +11556-11556 i2c: ack: "ACK" "A" +11557-11572 i2c: data-read: "Data read: 10" "DR: 10" "10" +11574-11574 i2c: ack: "ACK" "A" +11575-11590 i2c: data-read: "Data read: 03" "DR: 03" "03" +11592-11592 i2c: ack: "ACK" "A" +11593-11608 i2c: data-read: "Data read: 13" "DR: 13" "13" +11610-11610 i2c: nack: "NACK" "N" +11614-11614 i2c: stop: "Stop" "P" +15332-15332 i2c: start: "Start" "S" +15333-15348 i2c: address-write: "Address write: 68" "AW: 68" "68" +15350-15350 i2c: ack: "ACK" "A" +15351-15366 i2c: data-write: "Data write: 00" "DW: 00" "00" +15368-15368 i2c: ack: "ACK" "A" +15400-15400 i2c: repeat-start: "Start repeat" "Sr" +15401-15416 i2c: address-read: "Address read: 68" "AR: 68" "68" +15418-15418 i2c: ack: "ACK" "A" +15419-15434 i2c: data-read: "Data read: 30" "DR: 30" "30" +15436-15436 i2c: ack: "ACK" "A" +15437-15452 i2c: data-read: "Data read: 35" "DR: 35" "35" +15454-15454 i2c: ack: "ACK" "A" +15455-15470 i2c: data-read: "Data read: 23" "DR: 23" "23" +15472-15472 i2c: ack: "ACK" "A" +15473-15488 i2c: data-read: "Data read: 01" "DR: 01" "01" +15490-15490 i2c: ack: "ACK" "A" +15491-15506 i2c: data-read: "Data read: 10" "DR: 10" "10" +15508-15508 i2c: ack: "ACK" "A" +15509-15524 i2c: data-read: "Data read: 03" "DR: 03" "03" +15526-15526 i2c: ack: "ACK" "A" +15527-15542 i2c: data-read: "Data read: 13" "DR: 13" "13" +15544-15544 i2c: nack: "NACK" "N" +15548-15548 i2c: stop: "Stop" "P" +19253-19253 i2c: start: "Start" "S" +19254-19269 i2c: address-write: "Address write: 68" "AW: 68" "68" +19271-19271 i2c: ack: "ACK" "A" +19273-19288 i2c: data-write: "Data write: 00" "DW: 00" "00" +19290-19290 i2c: ack: "ACK" "A" +19359-19359 i2c: repeat-start: "Start repeat" "Sr" +19360-19375 i2c: address-read: "Address read: 68" "AR: 68" "68" +19377-19377 i2c: ack: "ACK" "A" +19378-19393 i2c: data-read: "Data read: 30" "DR: 30" "30" +19395-19395 i2c: ack: "ACK" "A" +19396-19411 i2c: data-read: "Data read: 35" "DR: 35" "35" +19413-19413 i2c: ack: "ACK" "A" +19414-19429 i2c: data-read: "Data read: 23" "DR: 23" "23" +19431-19431 i2c: ack: "ACK" "A" +19432-19447 i2c: data-read: "Data read: 01" "DR: 01" "01" +19449-19449 i2c: ack: "ACK" "A" +19450-19465 i2c: data-read: "Data read: 10" "DR: 10" "10" +19467-19467 i2c: ack: "ACK" "A" +19468-19483 i2c: data-read: "Data read: 03" "DR: 03" "03" +19485-19485 i2c: ack: "ACK" "A" +19486-19501 i2c: data-read: "Data read: 13" "DR: 13" "13" +19503-19503 i2c: nack: "NACK" "N" +19507-19507 i2c: stop: "Stop" "P" +23211-23211 i2c: start: "Start" "S" +23213-23228 i2c: address-write: "Address write: 68" "AW: 68" "68" +23230-23230 i2c: ack: "ACK" "A" +23264-23279 i2c: data-write: "Data write: 00" "DW: 00" "00" +23281-23281 i2c: ack: "ACK" "A" +23299-23299 i2c: repeat-start: "Start repeat" "Sr" +23300-23315 i2c: address-read: "Address read: 68" "AR: 68" "68" +23317-23317 i2c: ack: "ACK" "A" +23318-23333 i2c: data-read: "Data read: 30" "DR: 30" "30" +23335-23335 i2c: ack: "ACK" "A" +23336-23351 i2c: data-read: "Data read: 35" "DR: 35" "35" +23353-23353 i2c: ack: "ACK" "A" +23354-23369 i2c: data-read: "Data read: 23" "DR: 23" "23" +23371-23371 i2c: ack: "ACK" "A" +23372-23387 i2c: data-read: "Data read: 01" "DR: 01" "01" +23389-23389 i2c: ack: "ACK" "A" +23390-23405 i2c: data-read: "Data read: 10" "DR: 10" "10" +23407-23407 i2c: ack: "ACK" "A" +23408-23423 i2c: data-read: "Data read: 03" "DR: 03" "03" +23425-23425 i2c: ack: "ACK" "A" +23426-23441 i2c: data-read: "Data read: 13" "DR: 13" "13" +23443-23443 i2c: nack: "NACK" "N" +23447-23447 i2c: stop: "Stop" "P" diff --git a/decoders/i2c/test/rtc_ds1307_200khz_data_read.output b/decoders/i2c/test/rtc_ds1307_200khz_data_read.output new file mode 100644 index 0000000..31c3503 --- /dev/null +++ b/decoders/i2c/test/rtc_ds1307_200khz_data_read.output @@ -0,0 +1,49 @@ +342-357 i2c: data-read: "Data read: 30" "DR: 30" "30" +360-375 i2c: data-read: "Data read: 35" "DR: 35" "35" +378-393 i2c: data-read: "Data read: 23" "DR: 23" "23" +396-411 i2c: data-read: "Data read: 01" "DR: 01" "01" +414-429 i2c: data-read: "Data read: 10" "DR: 10" "10" +432-447 i2c: data-read: "Data read: 03" "DR: 03" "03" +450-465 i2c: data-read: "Data read: 13" "DR: 13" "13" +3627-3642 i2c: data-read: "Data read: 30" "DR: 30" "30" +3645-3660 i2c: data-read: "Data read: 35" "DR: 35" "35" +3663-3678 i2c: data-read: "Data read: 23" "DR: 23" "23" +3681-3696 i2c: data-read: "Data read: 01" "DR: 01" "01" +3699-3714 i2c: data-read: "Data read: 10" "DR: 10" "10" +3717-3732 i2c: data-read: "Data read: 03" "DR: 03" "03" +3735-3750 i2c: data-read: "Data read: 13" "DR: 13" "13" +7548-7563 i2c: data-read: "Data read: 30" "DR: 30" "30" +7566-7581 i2c: data-read: "Data read: 35" "DR: 35" "35" +7584-7599 i2c: data-read: "Data read: 23" "DR: 23" "23" +7602-7617 i2c: data-read: "Data read: 01" "DR: 01" "01" +7620-7635 i2c: data-read: "Data read: 10" "DR: 10" "10" +7638-7653 i2c: data-read: "Data read: 03" "DR: 03" "03" +7656-7671 i2c: data-read: "Data read: 13" "DR: 13" "13" +11485-11500 i2c: data-read: "Data read: 30" "DR: 30" "30" +11503-11518 i2c: data-read: "Data read: 35" "DR: 35" "35" +11521-11536 i2c: data-read: "Data read: 23" "DR: 23" "23" +11539-11554 i2c: data-read: "Data read: 01" "DR: 01" "01" +11557-11572 i2c: data-read: "Data read: 10" "DR: 10" "10" +11575-11590 i2c: data-read: "Data read: 03" "DR: 03" "03" +11593-11608 i2c: data-read: "Data read: 13" "DR: 13" "13" +15419-15434 i2c: data-read: "Data read: 30" "DR: 30" "30" +15437-15452 i2c: data-read: "Data read: 35" "DR: 35" "35" +15455-15470 i2c: data-read: "Data read: 23" "DR: 23" "23" +15473-15488 i2c: data-read: "Data read: 01" "DR: 01" "01" +15491-15506 i2c: data-read: "Data read: 10" "DR: 10" "10" +15509-15524 i2c: data-read: "Data read: 03" "DR: 03" "03" +15527-15542 i2c: data-read: "Data read: 13" "DR: 13" "13" +19378-19393 i2c: data-read: "Data read: 30" "DR: 30" "30" +19396-19411 i2c: data-read: "Data read: 35" "DR: 35" "35" +19414-19429 i2c: data-read: "Data read: 23" "DR: 23" "23" +19432-19447 i2c: data-read: "Data read: 01" "DR: 01" "01" +19450-19465 i2c: data-read: "Data read: 10" "DR: 10" "10" +19468-19483 i2c: data-read: "Data read: 03" "DR: 03" "03" +19486-19501 i2c: data-read: "Data read: 13" "DR: 13" "13" +23318-23333 i2c: data-read: "Data read: 30" "DR: 30" "30" +23336-23351 i2c: data-read: "Data read: 35" "DR: 35" "35" +23354-23369 i2c: data-read: "Data read: 23" "DR: 23" "23" +23372-23387 i2c: data-read: "Data read: 01" "DR: 01" "01" +23390-23405 i2c: data-read: "Data read: 10" "DR: 10" "10" +23408-23423 i2c: data-read: "Data read: 03" "DR: 03" "03" +23426-23441 i2c: data-read: "Data read: 13" "DR: 13" "13" diff --git a/decoders/i2c/test/rtc_ds1307_200khz_data_write.output b/decoders/i2c/test/rtc_ds1307_200khz_data_write.output new file mode 100644 index 0000000..1076929 --- /dev/null +++ b/decoders/i2c/test/rtc_ds1307_200khz_data_write.output @@ -0,0 +1,15 @@ +24-39 i2c: data-write: "Data write: 00" "DW: 00" "00" +42-57 i2c: data-write: "Data write: 30" "DW: 30" "30" +60-75 i2c: data-write: "Data write: 35" "DW: 35" "35" +78-93 i2c: data-write: "Data write: 23" "DW: 23" "23" +96-111 i2c: data-write: "Data write: 01" "DW: 01" "01" +114-129 i2c: data-write: "Data write: 10" "DW: 10" "10" +132-147 i2c: data-write: "Data write: 03" "DW: 03" "03" +150-165 i2c: data-write: "Data write: 13" "DW: 13" "13" +272-287 i2c: data-write: "Data write: 00" "DW: 00" "00" +3567-3582 i2c: data-write: "Data write: 00" "DW: 00" "00" +7489-7504 i2c: data-write: "Data write: 00" "DW: 00" "00" +11425-11440 i2c: data-write: "Data write: 00" "DW: 00" "00" +15351-15366 i2c: data-write: "Data write: 00" "DW: 00" "00" +19273-19288 i2c: data-write: "Data write: 00" "DW: 00" "00" +23264-23279 i2c: data-write: "Data write: 00" "DW: 00" "00" diff --git a/decoders/i2c/test/test.conf b/decoders/i2c/test/test.conf new file mode 100644 index 0000000..4e96a00 --- /dev/null +++ b/decoders/i2c/test/test.conf @@ -0,0 +1,12 @@ +test rtc + protocol-decoder i2c probe scl=0 probe sda=1 + input i2c/rtc_dallas_ds1307/rtc_ds1307_200khz.sr + output i2c annotation class data-read match rtc_ds1307_200khz_data_read.output + output i2c annotation class data-write match rtc_ds1307_200khz_data_write.output + output i2c annotation match rtc_ds1307_200khz.output + +test motherboard + protocol-decoder i2c probe scl=0 probe sda=3 + input i2c/gigabyte_6vle-vxl_i2c/gigabyte_6vle_vxl_i2c.sr + output i2c annotation match gigabyte_6vle_vxl_i2c.output + |