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

Is writing/reading multiple bits inside a byte supported? #28

Open
ChrisDoernen opened this issue Oct 14, 2020 · 1 comment
Open

Is writing/reading multiple bits inside a byte supported? #28

ChrisDoernen opened this issue Oct 14, 2020 · 1 comment

Comments

@ChrisDoernen
Copy link
Contributor

We have a usecase where we need to access single bits inside the same byte, e.g.

{
  type: "BOOL",
  start: 0,
  bit: 0,
  value: true
},
{
  type: "BOOL",
  start: 0,
  bit: 2,
  value: false
},

Is that even supported because in datatypes, line 36 the formatter allocates a whole byte for the boolean dbVar.
Thanks in advance!

@psi-4ward
Copy link
Owner

You can use BOOL to access singel bits

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

2 participants