XHRA-2HPA HID Inputs

Technical discussions around xCORE processors (e.g. General Purpose (L/G), xCORE-USB, xCORE-Analog, xCORE-XA).
amc184
New User
Posts: 2
Joined: Sun Jan 08, 2017 5:03 am

XHRA-2HPA HID Inputs

Postby amc184 » Sun Jan 08, 2017 6:14 am

I'm looking at using the XHRA-2HPA processor as part of a standalone DAC. I'd like to use the HID controls.

The only information xCORE-AUDIO configuration guide is the following:
xCORE-AUDIO device supports HID inputs over GPI pins for audio control like play, pause, mute, etc. By default, this option is not enabled. It can be enabled by setting the HID_INPUTS_ENABLE option to 1. Technically, the xCORE-AUDIO device always enumerates an HID interface, but the HID button states are reported to the host only when this option is enabled.
The datasheet has the following function (or similar) for each GPI pin:
Programmable input;
Alternate function: PLAY_PAUSE – HID play/pause button input
I'm planning on using a configuration file rather than the hardware configuration straps, with HID_INPUTS_ENABLE set to 1. How can I expect the GPI interface to behave?

Do they behave the same as when using the straps, with the input performing the function listed as 'alternate function'?

Do they need to be configured, like the label 'programmable input' label implies? If so, is any information available about how this is done?
henk
Respected Member
Posts: 346
Joined: Wed Jan 27, 2016 5:21 pm

Postby henk » Mon Jan 09, 2017 1:09 pm

As far as I know you simply set the HID_EN bit high in the configuration file, and all input buttons become active, which will be equivalent to setting HID_INPUTS_ENABLE to 1.

At a guess the programmable input refers to possible future extensions.

Who is online

Users browsing this forum: No registered users and 3 guests