USB Audio Design Guide
Parameters
c_to_host
a chanend connected to the
thread for receiving/-
transmitting samples
c_to_audio
a chanend connected to the
thread for receiving/trans-
mitting samples
c_mix_ctl
a chanend connected to the
thread for receiving
control commands
Function
audio
Description
The audio driver thread.
This function drives I2S ports and handles samples to/from other digital I/O
threads.
Type
void audio(chanend c_in, chanend ?c_config, chanend ?c_adc)
Parameters
c_in
Audio sample channel connected to the
thread or the
thread
c_dig
channel connected to the
thread for receiving/trans-
mitting samples
c_config
An optional channel that will be passed on to the CODEC config-
uration functions.
Function
clockGen
Description
Clock generation and digital audio I/O handling.
Type
void
clockGen(streaming chanend ?c_spdif_rx,
chanend ?c_adat_rx,
out port p,
chanend c_audio,
chanend c_clk_ctl,
chanend c_clk_int)
Continued on next page
XM0088546.1
Содержание xCORE-200 Multi-channel Audio board
Страница 6: ...1 Overview XM0088546 1...