-
Notifications
You must be signed in to change notification settings - Fork 9
Description
TriggerInputOutputCapabilities has 2 attributes, input and output, with each being 8-bit integers. This class is used to specify which of the 8 available lines can be used as either an input or an output trigger. At the moment, the capability is specified by converting the 8-bit representation of the lines, with 1 indicating available and 0 indicating unavailable, to a decimal integer. For example, if lines 0 and 2 were available for input triggers, the 8-bit representation would be 0b00000101, which would be 5 in the decimal system, and the input attribute would be 5.
This could be improved by skipping the need for the conversion step. For example, accepting an 8 element list, so in the above example the input attribute would be [0,0,0,0,0,1,0,1], or for instance, just having the user specify which lines are available for triggering with their indices, so in the above example, the input attribute would be [0, 2].
Metadata
Metadata
Assignees
Labels
Type
Projects
Status