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

Comments

Projects
None yet
1 participant
@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

This comment has been minimized.

Copy link
Contributor

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