As far as I know, the protocol decoders cannot output synthetic samples to be plotted as another channel on the timeline. OUTPUT_BINARY is not for that purpose either, raw binary output is not shown on the timeline.
But with OUTPUT_ANN, you can have multiple output annotation rows. For your example, you could emit high/low annotations for separate rows representing bit1, bit2, bit3 and bit4. They will be shown on the timeline in the sample range you specify. It won't look exactly like a logic level trace, but it is a way to split your calculated values back out to separate bits. https://sigrok.org/wiki/Protocol_decoder_HOWTO#annotations_&_annotation_rows Can you get what you need with separate annotation rows? On Thu, Aug 25, 2022 at 12:24 AM Helge Kruse <helge.kr...@gmx.net> wrote: > I have already written some decoders stacked on UART and I2C decdoers. > The usual use case is to detect high level framing and add textual > annotations with the detected information. Now I need a non-textual > display. > > One of the detected information is a channel mask for 4 channels. I want > to add 4 lines to the output that looks like the input signals. So the > (calculated) values 0, 9, 6 should be displayed like this: > > 0 9 6 > ____----____ > ________---- > ________---- > ____----____ > > This would look like new, software generated, signals. Does the > libsigrokdecode library support this functionality? Is the binary output > design for this use case? How should I start? > > Best regards, > Helge > > > _______________________________________________ > 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