Hi, Arsenijs!
 
Thanks, great! There is similar PD uart_packet for stacking with the uart PD.
 
 
Maybe it also help in your work. If you use uart PD, of course.
 
07.08.2022, 21:33, "Pičugins Arsenijs" <crim...@yandex.ru>:
Haven't checked, but from the output, that looks wonderful - I used to write scripts to do this kind of thing out of the raw output! Hope it gets merged soon! Until then, hopefully I get to some of my I2C work in a week's time, could test it out.
-Arya
 
07.08.2022, 20:29, "Sergey Spivak" <sespi...@yandex.ru>:

Hello,

I posted a pull request https://github.com/sigrokproject/libsigrokdecode/pull/92 for the new protocol decoder.

i2c_packet protocol decoder stacks with i2c PD and allows to combine several data bytes from "START" i2c condition until "STOP" or "START REPEAT" and puts this data in a dedicated annotation.
 
Possible data formats for data output are hex, ascii, dec, bin and oct.
 
This decoder also allows logging data packets with the `print_sec` option enabled:
$ sigrok-cli -d fx2lafw -c samplerate=1M --continuous -P i2c:scl=D2:sda=D3,i2c_packet:print_sec=yes -A i2c_packet
i2c_packet-1:    0.082 ADDR 0x08 WR: 04
i2c_packet-1:    0.082 ADDR 0x08 RD: 05 00 00 1C 11 00 00 0A 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 FF FF 57
i2c_packet-1:    0.181 ADDR 0x08 WR: 04
i2c_packet-1:    0.181 ADDR 0x08 RD: 05 00 00 1C 11 00 00 0A 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 FF FF 57
i2c_packet-1:    0.280 ADDR 0x08 WR: 04
i2c_packet-1:    0.280 ADDR 0x08 RD: 05 00 00 1C 11 00 00 0A 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 FF FF 57
Could you look at the proposed decoder and give feedback on it?
 
Sincerely yours,
Sergey Spivak
,,

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

 
 
С уважением,
Сергей Спивак
 
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to