-
Notifications
You must be signed in to change notification settings - Fork 156
"bits" is a valid field name #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
SolutionRename From the schema (register names have type <xs:simpleType name="dimableIdentifierType">
<xs:restriction base="xs:string">
<xs:pattern value="((%s)|(%s)[_A-Za-z]{1}[_A-Za-z0-9]*)|([_A-Za-z]{1}[_A-Za-z0-9]*(\[%s\])?)|([_A-Za-z]{1}[_A-Za-z0-9]*(%s)?[_A-Za-z0-9]*)"/>
</xs:restriction>
</xs:simpleType> |
Also happened to me with ATSAM3X8E.svd. My workaround was to rename the field rather than the method (which works, but also feels wrong) |
We can use [@whitequark's idea]](#99 (comment)) of renaming the 'bits` variant (when the enumeratedValue is named BITS) iff it would cause a collision with R.bits. |
In that case the method to access the bitfield proxy:
is ambiguous with the register method to get its raw bits
This happens in the SKEAZN84.svd file.
The text was updated successfully, but these errors were encountered: