
USB Audio Design Guide 55/61
void CodecConfig(unsigned samFreq, unsigned mclk, chanend ?c_codec)
This function is called when the audio core starts or changes sample rate. It should
configure the CODEC to run at the specified sample rate given the supplied master
clock frequency.
This function has the following parameters:
samFreq
The sample frequency in Hz that the CODEC should be configured
to play.
mclk
The master clock frequency that will be supplied to the CODEC in
Hz.
c_codec
An optional chanend that was original passed into audio() that can
be used to communicate with other cores.
5.2.2 Clocking Configuration Functions
void ClockingInit(void)
This function is called when the audio core starts are device boot. It should initialize
any external clocking hardware.
void ClockingConfig(unsigned mClkFreq)
This function is called when the audio core starts or changes sample frequency. It
should configure any external clocking hardware such that the master clock signal
being fed into the XCORE Tile and CODEC is the same as the specified frequency.
This function has the following parameters:
mClkFreq The required clock frequency in Hz.
5.2.3 Audio Streaming Functions
void AudioStreamStart(void)
This function is called when the audio stream from device to host starts.
void AudioStreamStop(void)
This function is called when the audio stream from device to host stops.
5.3 Component API
The following functions can be called from the top level main of an application and implement the
various components described in §3.3.
int XUD_Manager(chanend c_ep_out[],
int noEpOut,
chanend c_ep_in[],
int noEpIn,
REV 6.1
Comentários a estes Manuais