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

WIP: Support BDF trigger + status channels #61

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ararslan
Copy link
Member

See #60 and the BioSemi format description. Basically the approach here is that we read the "status" signal into its own dedicated type that sits alongside EDF.Signal and EDF.AnnotationsSignal. When reading the actual values, we take the first two bytes as the trigger and the last as the status. If I'm reading BioSemi's description correctly, the individual bits of these signals mean something, so I've opted for now to read them as UInt16 and UInt8 rather than some other 2-byte type and Bool.

Still to do: More thorough understanding + tests.

@palday
Copy link
Member

palday commented Nov 13, 2021

Yeah, you're reading that correctly. It's not uncommon to encode things with a bit mask.

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

Successfully merging this pull request may close these issues.

2 participants