Adding a Control Endpoint to USB audio Ref design

Technical questions regarding the XTC tools and programming with XMOS.
ed_m
Junior Member
Posts: 5
Joined: Wed Apr 19, 2017 5:40 pm

Adding a Control Endpoint to USB audio Ref design

Post by ed_m »

We are developing a new product based on the Xmos USB Audio 2.0 Reference Design(using xCore200 Series). We would like to add a control endpoint, in addition to the default control endpoint 0. We have successfully added interrupt endpoints in previous designs, but never a control endpoint. Given that it is bidirectional, it has to be handled differently than the interrupt endpoints. I presume it has to be handled more like endpoint 0.

1: Will the Reference design handle the addition of a control endpoint?
2: If so, Is there any relevant design or application notes that could be used as a guide?

Thanks for any help.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am

Post by mon2 »

ed_m
Junior Member
Posts: 5
Joined: Wed Apr 19, 2017 5:40 pm

Post by ed_m »

Hi Mon, Because of constraints on the Host side application, it has to be a control endpoint.
User avatar
Wavelength
Experienced Member
Posts: 76
Joined: Mon Sep 24, 2018 9:56 pm

Post by Wavelength »

Ed,

sc_usb_audio/module_usb_audio/endpoint0

Is where all the files are. You will need to figure out where your bmRequest falls into place to add specific requests and responses and build all. I did that for a specific firmware update program we wrote on macOS a couple years back.

Thanks,
Gordon
Wavelength Audio, ltd.