Bitfields

Open
#3 1 comment 0 reactions 1 assignee View on GitHub

@avisconti is already working on this.

Since Jan 9, 2025.

Assessment

This issue has not been assessed yet.

Description

This driver source code still associates compiler bitfield layout with host endianness - but the two are not associated. Bitfield layout is determined by the compiler and may not line up with the layout of the sensor device registers. Bitfields are to be avoided for this purpose.

Refer to #1

The endianness of the host is irrelevant in the first place.

Refer to #2

Dominant language
C
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.