Closed korken89 closed 10 months ago
Ah right! It's pretty obvious spelled out like this. I did not think about checking the field RW state so it currently tries to show all fields regardless.
Gonna need an extra macro to fix 😅 But this is also doable. Will look into it.
Thanks for spotting it!
So, I had some time (and motivation) today. Sadly the way I thought I was gonna solve this doesn't work. I may have to do a really ugly workaround. But that's ok if I'm gonna port this to a proc macro after this...
Sorry for taking so long :(
No problem!
Crate has been overhauled. Issue no longer relevant
I have noticed that generating dual definitions within a register works fine, for example:
The bit which has different meaning when writing and reading is generated correctly in the
R
andW
. However when I add the#[generate(Debug)]
the debug tuple is not correctly constructed with the debug info for the WO bit is in theR
debug print impl:So to me it seems that the
#[generate(Debug)]
does not handle WO bits correctly as they should not be in the debug print. What do you think @diondokter ?