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

Bitfields #15

Open
chambart opened this issue Oct 22, 2013 · 1 comment
Open

Bitfields #15

chambart opened this issue Oct 22, 2013 · 1 comment

Comments

@chambart
Copy link

A simple way to acces fields of a bitfield would be usefull.

cstruct some_struct {
  uint2_t  field1;
  uint6_t  field2;
  uint8_t  some_byte;
  uint16_t rest
} as little_endian
@avsm
Copy link
Member

avsm commented Oct 22, 2013

This is turning into a full C implementation very rapidly ;-)

On 22 Oct 2013, at 16:38, Pierre Chambart [email protected] wrote:

A simple way to acces fields of a bitfield would be usefull.

cstruct some_struct {
uint2_t field1;
uint6_t field2;
uint8_t some_byte;
uint16_t rest
} as little_endian

Reply to this email directly or view it on GitHub.

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