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

nearby-info correct byte-type for Action-code? #6

Open
ozett opened this issue Dec 30, 2022 · 0 comments
Open

nearby-info correct byte-type for Action-code? #6

ozett opened this issue Dec 30, 2022 · 0 comments

Comments

@ozett
Copy link

ozett commented Dec 30, 2022

Action-code is stated as uint8 (a full byte)?,
but deciphered only as 4-bit.

shouldnt it be type-marked as something like "uint4" ?

or clearly stated whats the high/low-part (from left to right/right to left?) of this divied byte?
maybe it could be clarified in clearly showing whats the low and high half-byte as nibbles?
https://en.wikipedia.org/wiki/Nibble#Low_and_high_nibbles

(the other half of the full byte (for the action-code) looks like as the 4-bit status-flags.)

image

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

No branches or pull requests

1 participant