Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve TriggerInputOutputCapabilities attribute's to be more intuitive #195

Open
dgmccart opened this issue May 17, 2024 · 0 comments
Open
Assignees

Comments

@dgmccart
Copy link
Collaborator

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].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants