hid implementation

Technical questions regarding the XTC tools and programming with XMOS.
genap
Experienced Member
Posts: 99
Joined: Sat Aug 31, 2013 11:23 pm

hid implementation

Post by genap »

Hello,
I have an usb audio project, based on a DJ reference design (XS1-U8A).
I need to implement HID functionality for commands and configuration transfers.

The first thing I am trying is to enable HID functionality in the DJ design.
As instructed by the Audio software design guide, I enable HID_CONTROLS, SU1_ADC_ENABLE and ADC_VOL_CONTROL, setting them to 1.

It builds fine, but when debugging it, I get continuous never ending timeouts.
Seems like USB doesn’t read something.

Please advice on what could it be?

Also, is there a decent guide for HID implementation at XMOS site?

Thank you,
Gennady


User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Hello,

Hid class USB demo is available as xSOFTip component in xmos website. You can download the example from the following link:
https://www.xmos.com/support/downloads? ... =XCORE-USB

Sethu.
User avatar
Ross
XCore Expert
Posts: 972
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

The HID example in the USB codebase is only really for simple controls such as play/pauses etc. If you have large amounts of data to transfer it could be a good idea to use a separate core for this.
genap
Experienced Member
Posts: 99
Joined: Sat Aug 31, 2013 11:23 pm

Post by genap »

I wish I could place HID on a separate core. One of the reasons also is that I don't want hid messages to interrupt streaming audio.

Unfortunately, i don't have any cores available (on U8A).
So I wonder if I can place hid on a core where my custom control module resides.
It's quite busy (serial microphones control, external dsp communication, leds etc.),
but it's definitely not that time critical as usb audio is.

I am trying to figure out how (and if) I can share usb with this core.
Will appreciate advice.

Thank you,
Gennady