Custom Defines#
An application using the USB audio framework needs to have a defines
file called customdefines.h
. This file can set the following defines:
System Feature Configuration#
Define |
Description |
Default |
---|---|---|
|
Define for enabling audio input, in descriptors, buffering and so on. |
defined |
|
Define to enable DFU interface. Requires a custom driver for Windows. |
defined |
|
Define to enable use of custom flash device for DFU interface. |
not defined |
|
Define to enable MIDI input and output. |
defined |
|
If defined the CODEC acts as I2S slave (and the XCORE Tile as master) otherwise the CODEC acts as master. |
defined |
|
Number of audio channels the USB audio interface has from host to the device. |
10 |
|
Number of audio channels the USB audio interface has from device to host. |
10 |
|
Maximum frequency device runs at in Hz |
96000 |
|
Number of I2S audio channels output to the codec. This must be a multiple of 2. |
8 |
|
Number of I2S audio channels input from the codec. This must be a multiple of 2. |
8 |
|
Define to Enable S/PDIF output. If OUTPUT is not
defined, zero-ed samples are emitted. The S/PDIF audio channels will
be two channels immediately following |
defined |
|
Define to enable S/PDIF input. |
not defined |
|
Define to enable ADAT input. |
not defined |
|
Define to enable the MIXER. |
not defined |
|
The minimum volume setting above -inf. This is a signed 8.8 fixed point number that must be strictly greater than -128 (0x8000). |
0x8100 |
|
The maximum volume setting for the mixer in db. This is a signed 8.8 fixed point number. |
0 |
|
The resolution of the volume control in db as a 8.8 fixed point number. |
0x100 |
|
The minimum volume setting for the mixer unit above -inf. This is a signed 8.8 fixed point number that must be strictly greater than -128 (0x8000). |
0x8080 |
|
The maximum volume setting for the mixer. This is a signed 8.8 fixed point number. |
0x0600 |
|
The resolution of the volume control in db as a 8.8 fixed point number. |
0x080 |
USB Device Configuration Options#
Define |
Description |
Default |
---|---|---|
|
Vendor ID |
(0x20B1) |
|
Product ID (Audio Class 2) |
N/A |
|
Product ID (Audio Class 1) |
N/A |
|
Device release number in BCD form |
N/A |
|
String identifying vendor |
XMOS |
|
String identifying serial number |
“0000” |