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

[smio:all] replace smio_thsafe_read/write to SET/GET_PARAM macros #111

Open
lerwys opened this issue Sep 16, 2016 · 0 comments
Open

[smio:all] replace smio_thsafe_read/write to SET/GET_PARAM macros #111

lerwys opened this issue Sep 16, 2016 · 0 comments

Comments

@lerwys
Copy link
Contributor

lerwys commented Sep 16, 2016

Issue by lerwys
Friday Nov 06, 2015 at 03:10 GMT
Originally opened as lnls-dig/bpm-sw#111


Problem: Typically, we need to change register fields, which occupies some bits of a register. In order to not modify other fields, we must read the whole register first an change only the bits corresponding to that field. This is the regular way way doing this. The issue is that it is easy to use the smio_thsafe_client_() of functions and change the whole register.

Solution: Use the rw_param macros like SET_PARAM and GET_PARAM to read/write only specifc register fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant