Add a closure taking Register.write API #66
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Instead of requiring users to form a write value with following clunky snippet:
Provide an api which takes a closure with an
inout w
and performs the write after the closure completes. This makeswrite
as ergonomic asmodify
. It can also be extended with a parameter on how to form the initial value to be written.The text was updated successfully, but these errors were encountered: