Validated Build Options - XMOS xCORE-200 Multi-channel Audio board Design Manual

Usb audio
Hide thumbs Also See for xCORE-200 Multi-channel Audio board:
Table of Contents

Advertisement

USB Audio Design Guide
/* Write HID Report Data into hidData array
*
* Bits are as follows :
* 0: Play / Pause
* 1: Scan Next Track
* 2: Scan Prev Track
* 3: Volume Up
* 4: Volime Down
* 5: Mute
*/
void U s e r R e a d H I D B u t t o n s ( unsigned char hidData [])
{
# ifndef MIDI
# endif
}
In the example above the buttons are assigned to volume up/down.

6.1.4 Validated Build Options

The reference design can be built in several ways by changing the build options.
These are described in usb_audio_sec_custom_defines_api.
The design has only been fully validated against the build options as set in the
application as distributed. See
In practise, due to the similarities between the U-Series and L-Series feature set, it
is fully expected that all listed U-Series configurations will operate as expected on
the L-Series and vice versa.
6.1.4.1 Configuration 2ioxs
This configuration runs in high-speed Audio Class 2.0 mode, has the mixer disabled,
supports 2 channels in, 2 channels out and supports sample rates up to 192kHz
and S/PDIF transmit.
6.1.4.2 Configuration 2iomx
This configuration disables S/PDIF and enables MIDI.
XM0088546.1
unsigned a , b ;
p_but_a : > a ;
p_but_b : > b ;
a = (~ a ) & 1;
b = (~ b ) & 1;
/* Assign buttons A and B to Vol Up / Down */
hidData [0] = ( a << H I D _ C O N T R O L _ V O L U P _ S H I F T ) | ( b <<
H I D _ C O N T R O L _ V O L D N _ S H I F T ) ;
§5.3
for details and binary naming.
67/110

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents