
USB Audio Design Guide 61/61
p ADAT port - should be 1-bit and clocked at 100MHz
oChan channel on which decoded samples are output
void adatReceiver44100(buffered in port:32 p, chanend oChan)
ADAT Receive Thread (44.1kHz sample rate).
The function will return if it cannot lock onto a 44,100/48,000 Hz signal. Normally
the 48000 function is called in a while(1) loop. If both 44,100 and 48,000 need to
be supported, they should be called in sequence in a while(1) loop. Note that the
functions are large, and that 44,100 should not be called if it does not need to be
supported.
This function has the following parameters:
p ADAT port - should be 1-bit and clocked at 100MHz
oChan channel on which decoded samples are output
void usb_midi(port ?p_midi_in,
port ?p_midi_out,
clock ?clk_midi,
chanend ?c_midi,
unsigned cable_number,
chanend ?c_iap,
chanend ?c_i2c,
port ?p_scl,
port ?p_sda)
USB MIDI I/O thread.
This function passes MIDI data from USB to UART I/O.
This function has the following parameters:
p_midi_in 1-bit input port for MIDI
p_midi_out 1-bit output port for MIDI
clk_midi
clock block used for clockin the UART; should have a rate of 100MHz
c_midi chanend connected to the decouple() thread
cable_number
the cable number of the MIDI implementation. This should be set
to 0.
REV 6.1
Commentaires sur ces manuels