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

Enable arbitrary register address and value sizes #36

Open
sfe-SparkFro opened this issue Nov 4, 2024 · 0 comments
Open

Enable arbitrary register address and value sizes #36

sfe-SparkFro opened this issue Nov 4, 2024 · 0 comments

Comments

@sfe-SparkFro
Copy link
Contributor

Most devices have 8-bit register addresses with 8-bit values. However some devices have 16-bit register addresses, or 16-bit register values, or even 32-bit (eg. the XM125 uses 16-bit addresses with 32-bit values, see section 3 here).

Rather than making special functions for every possible permutation, I think it would make sense to have a single set of read/write functions that can accept any address/value size. The user would need to initialize the size and endianness of the addresses and values once at the start.

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