Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant