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

0.5.1 #2

Merged
merged 5 commits into from
Nov 1, 2023
Merged

0.5.1 #2

merged 5 commits into from
Nov 1, 2023

Conversation

amcelroy
Copy link
Owner

@amcelroy amcelroy commented Nov 1, 2023

Removed 2's compliment, better trait naming to prevent collisions, added address index for non-linear peripheral address spaces.

The issue came up on the Max17261, where the addressing is
non-contiguous. In v0.4.0, accessing the registers by address caused a
buffer overflow because the address was larger than the indexable
register map. The solution is an array of addresses.
The bitfield and bitrange macros getters and setters are generated as
traits. To use the getter / setter, the trait needs to be imported.
A bitfield named chg_en in the Status register can now be imported as
use (namespace)::Status_chg_en to keep things more consistant.
@amcelroy amcelroy merged commit 4f51e34 into main Nov 1, 2023
@amcelroy amcelroy deleted the 0.5.1 branch November 1, 2023 19:56
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