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

✨ Implement read-only and write-only fields #28

Merged
merged 3 commits into from
Dec 10, 2023

Conversation

paul1999
Copy link
Contributor

@paul1999 paul1999 commented Dec 7, 2023

Fixes #27

@wrenger
Copy link
Owner

wrenger commented Dec 10, 2023

Hi @paul1999 thanks a lot for your contribution.
I finally have the time to look into this and review your changes.

Copy link
Owner

@wrenger wrenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your additions are quite excellent, not much to criticize. The first three comments are minor style suggestions (that are rather optional). Though, the last one about a proper error for invalid access values might be more important.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@wrenger wrenger self-assigned this Dec 10, 2023
This is useful when implement drivers for memory mapped I/O. Some of the
device registers should only be read/written, but not the opposite.

Fixes wrenger#27
@wrenger wrenger merged commit 9b2a94b into wrenger:main Dec 10, 2023
3 checks passed
@wrenger
Copy link
Owner

wrenger commented Dec 10, 2023

Thanks, I merged it and released it with 0.5.6.

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.

Read-Only Fields
2 participants