Closed duskmoon314 closed 2 years ago
As since 0.24.1 field writers are generic over field offset I don't see big issue to support arrays with non-sequential indices.
svdconv doesn't complain either about reversed order, nor non-sequential ordering
Brief Intro
When generating
field
withdim
, now we only support numericdimIndex
in the ascent order. For example,0,1,2,3
. Should we support the descent order, like3,2,1,0
?A Real Problem
Today I came across a register description like this:
So I think maybe the SVD file could be like this:
But currently,
svd2rust
will treat this as an error:Note
register
,cluster
, and other elements that could havedim
. Do they need this too? Or they are already supported? I thinkperipheral
support this usage because in #592,%s
is simply replaced by index and no check of its order.