Skip to content

Support lsb0 bit ordering - #1

Open
hacklint wants to merge 1 commit into
mainfrom
lsb0_support
Open

Support lsb0 bit ordering#1
hacklint wants to merge 1 commit into
mainfrom
lsb0_support

Conversation

@hacklint

Copy link
Copy Markdown
Owner

Add the option of using lsb0-based bit numbering in bitfield-access
Proved useful eg for handling Can data on Intel, "sawtooth" numbering
Rename existing read_field and write_field functions with prepended _,
adding wrapper functions read_filed and read_field_lsb0 (symmetric for
write), essentially extending the api with functions read_field_lsb0
and write_field_lsb0. Not sure if it is the best way to extend, but it
works.
Also add basic tests for the new capabilities.

 Add the option of using lsb0-based bit numbering in bitfield-access
    Proved useful eg for handling Can data on Intel, "sawtooth" numbering
    Rename existing read_field and write_field functions with prepended _,
    adding wrapper functions read_filed and read_field_lsb0 (symmetric for
    write), essentially extending the api with functions read_field_lsb0
    and write_field_lsb0. Not sure if it is the best way to extend, but it
    works.
    Also add basic tests for the new capabilities.
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

Successfully merging this pull request may close these issues.

1 participant