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

Bit fields support #205

Open
XVilka opened this issue Aug 30, 2018 · 1 comment
Open

Bit fields support #205

XVilka opened this issue Aug 30, 2018 · 1 comment

Comments

@XVilka
Copy link
Contributor

XVilka commented Aug 30, 2018

It is not uncommon when C structures defined with bitfields

struct {
    unsigned int a : 2;
    unsigned int b : 4;
} some;
@XVilka
Copy link
Contributor Author

XVilka commented Dec 24, 2018

Note that it would require a different reading/writing logic depending on the endianess:
image

image
See http://mjfrazer.org/mjfrazer/bitfields/ for more information.

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