Skip to content
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

Extend DescriptorField to support arrays #10

Open
twam opened this issue Feb 7, 2021 · 1 comment
Open

Extend DescriptorField to support arrays #10

twam opened this issue Feb 7, 2021 · 1 comment
Labels
enhancement potential new feature

Comments

@twam
Copy link
Contributor

twam commented Feb 7, 2021

When trying to define a DescriptorField with name 'baInterfaceNr' (As defined in USB Audio Class, Table 4-2 for Audio Control Interface Header Descriptor) it fails as prefix ba is considered invalid.

Traceback (most recent call last):
  File "/Users/twam/Source/nmigen/./usb-debug.py", line 71, in <module>
    "baInterfaceNr"         / DescriptorField("Number of AudioStreaming and MIDIStreaming interfaces"),
  File "/usr/local/lib/python3.9/site-packages/usb_protocol/types/descriptor.py", line 236, in __rtruediv__
    field_type = self._get_type_for_name(field_name)
  File "/usr/local/lib/python3.9/site-packages/usb_protocol/types/descriptor.py", line 220, in _get_type_for_name
    raise ValueError("field names must be formatted per the USB standard!")
ValueError: field names must be formatted per the USB standard!
@Qyriad Qyriad self-assigned this Feb 18, 2021
@straithe straithe added needs validation described problem or solution requires further validation technical support request for technical support labels Nov 4, 2021
@antoinevg antoinevg changed the title DescriptorField fails on arrays Extend DescriptorField to support arrays Apr 5, 2024
@antoinevg
Copy link
Member

Notes:

@antoinevg antoinevg added enhancement potential new feature and removed needs validation described problem or solution requires further validation technical support request for technical support labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement potential new feature
Projects
None yet
Development

No branches or pull requests

4 participants