
USB Audio Design Guide 57/61
reset_mask
The mask to use when sending a reset. The mask is ORed into the
port to enable reset, and unset when deasserting reset. Use ‘-1’ as
a default mask if this port is not shared.
desired_speed
This parameter specifies whether the device must be full-speed (ie,
USB-1.0) or whether high-speed is acceptable if supported by the
host (ie, USB-2.0). Pass
XUD_SPEED_HS
if high-speed is allowed, and
XUD_SPEED_FS if not. Low speed USB is not supported by XUD.
test_mode This should always be null.
When using the USB audio framework the
c_ep_in
array is always composed in the following order:
· Endpoint 0 (in)
· Audio Feedback endpoint (if output enabled)
· Audio IN endpoint (if input enabled)
· MIDI IN endpoint (if MIDI enabled)
· Clock Interrupt endpoint
The array c_ep_out is always composed in the following order:
· Endpoint 0 (out)
· Audio OUT endpoint (if output enabled)
· MIDI OUT endpoint (if MIDI enabled)
void Endpoint0(chanend c_ep0_out,
chanend c_ep0_in,
chanend c_audioCtrl,
chanend ?c_mix_ctl,
chanend ?c_clk_ctl,
chanend ?c_usb_test)
Function implementing Endpoint 0 for enumeration, control and configuration of
USB audio devices.
It uses the descriptors defined in descriptors_2.h.
This function has the following parameters:
c_ep0_out Chanend connected to the XUD_Manager() out endpoint array
c_ep0_in Chanend connected to the XUD_Manager() in endpoint array
c_audioCtrl Chanend connected to the decouple thread for control audio (sam-
ple rate changes etc.)
REV 6.1
Kommentare zu diesen Handbüchern