Closed diondokter closed 3 years ago
I'm now just noticing it... The field values that are just a number are in decimal. All other numbers are Hex. Will this be a problem?
It's only the raw bit values that are hex and they're all prepended with 0x
, so I think that's fine.
In the end you're supposed to leave numbers as numbers. Anywhere where the bits are important (so you'd want to see the hex fmt) should be encoded in enums anyways.
Good you spotted that!
Now it works when I test it!
Closes #8
You can now do this:
Then we can:
The generate attribute is optional. If you don't add it to the register, the output is now better too:
When opting in, all field types must impl Debug.
This attribute syntax can be used later for other things as well.