You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a current part of the SVD specification for working with fields defined in this way? I would like to be able to use something like enumeratedValues combined with a bitmask for ignoring irrelevant bits on reads, and not clobbering those bits on writes.
As a work-around, it's obviously possible to just split the field into separate field definitions, and document their relation. However, I would like to be able to define this using the type system in the generated code.
If this capability is not currently in the specification, would it be desirable/possible to add it in a future version?
I would be happy to contribute time/effort in design and development work.
The text was updated successfully, but these errors were encountered:
In certain hardware descriptions, bit fields can be split across multiple ranges with significant bits in between.
An example I've recently come across: https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h#L275,
Is there a current part of the SVD specification for working with fields defined in this way? I would like to be able to use something like
enumeratedValues
combined with a bitmask for ignoring irrelevant bits on reads, and not clobbering those bits on writes.As a work-around, it's obviously possible to just split the field into separate field definitions, and document their relation. However, I would like to be able to define this using the type system in the generated code.
If this capability is not currently in the specification, would it be desirable/possible to add it in a future version?
I would be happy to contribute time/effort in design and development work.
The text was updated successfully, but these errors were encountered: