-
Notifications
You must be signed in to change notification settings - Fork 36
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
Represent line levels as a bool #5
Comments
The actual value (0, non-zero) is modeling "active" state for the line which can be inverted in the kernel via the active-low setting. I could see |
Whenever I wrap a C library or API in a language that has a bool type (C++, Rust, etc), I usually prefer to convert the C integer boolean (0, non-zero) to a bool to be a little more explicit about the possible values, and remove ambiguities. But it's no big deal either way. |
Possibly relevant. I've been working on a reusable abstraction for logic levels. |
i can't find it right now but i believe there is discussion about introducing a |
I know the char driver(s) expose bits as
u8
values, but it might be easier to manipulate the values as booleans. Should we consider:The text was updated successfully, but these errors were encountered: