Degi has quit [Ping timeout: 258 seconds]
Degi has joined #scopehal
<
azonenberg>
@louis, @MP: I'm trying to figure out how to expose the pattern target for the LeCroy 8B/10B trigger within our API
<
azonenberg>
enabling the trigger mode and setting baud rate is straightforward
<
azonenberg>
but the pattern, as far as I can tell, is one of two possible types
<
azonenberg>
First is a string of 1 to 8 8b/10b symbols
<
azonenberg>
each symbol can be specified as either a specific K character, a specific D character, or a dontcare
<
azonenberg>
for K or D characters you can choose to match positive disparity, negative, or either
<
azonenberg>
The second type of pattern is a list of 1 to 6 symbols, specified the same way
<
azonenberg>
and you can trigger on either any single symbol within that list, or any single symbol not in the list
<
azonenberg>
So the question is how to fit this into our object model
<
azonenberg>
the native lecroy api is rather ugly in this regard
<
azonenberg>
it's basically a giant list of properties several screens high
<
azonenberg>
wrong menu
<
azonenberg>
this is how their GUI implements it
<
azonenberg>
(there's also a few settings around equalization etc that i still have to deal with)
<
azonenberg>
the "primitive" is just syntactic sugar around some other stuff, and the protocol error bit i dont use often but need to look into more
<
azonenberg>
we'll cross that bridge later
<
azonenberg>
The first possibility is to define the match pattern directly as a new FilterParameter type
<
azonenberg>
which represents a list of 8b/10b symbols
<
azonenberg>
but i feel like that would be a bit awkward
<
azonenberg>
the other thing to consider is that the "symbol OR" and "symbol string" modes have different sized sets
<
azonenberg>
and that dontcares are legal in string mode but not in list mode
<
azonenberg>
(also ping: lain, monochroma, balrog)
<
azonenberg>
also far as i can see the lecroy gui allows you to match on a Dx.x symbol, but does not allow you to input a hex value for it
<
azonenberg>
even though they're semantically the same
bvernoux has joined #scopehal
nelgau_ has quit [Ping timeout: 255 seconds]
nelgau has joined #scopehal