
5 API
IN THIS CHAPTER
· Custom Defines
· Required User Function Definitions
· Component API
5.1 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:
5.1.1 System Feature Configuration
Define Description Default
INPUT
Define for enabling audio input, in descrip-
tors, buffering and so on.
defined
DFU
Define to enable DFU interface. Requires a
custom driver for Windows.
defined
DFU_CUSTOM_FLASH_DEVICE
Define to enable use of custom flash device
for DFU interface.
not defined
MIDI Define to enable MIDI input and output. defined
CODEC_SLAVE
If defined the CODEC acts as I2S slave (and
the XCORE Tile as master) otherwise the
CODEC acts as master.
defined
NUM_USB_CHAN_IN
Number of audio channels the USB audio
interface has from host to the device.
10
NUM_USB_CHAN_OUT
Number of audio channels the USB audio
interface has from device to host.
10
MAX_FREQ Maximum frequency device runs at in Hz 96000
I2S_CHANS_DAC
Number of I2S audio channels output to the
codec. This must be a multiple of 2.
8
I2S_CHANS_ADC
Number of I2S audio channels input from
the codec. This must be a multiple of 2.
8
SPDIF
Define to Enable S/PDIF output. If OUTPUT
is not defined, zero-ed samples are emitted.
The S/PDIF audio channels will be two chan-
nels immediately following I2S_CHANS_DAC.
defined
SPDIF_RX Define to enable S/PDIF input. not defined
ADAT_RX Define to enable ADAT input. not defined
(continued)
REV 6.1
Kommentare zu diesen Handbüchern