forked from PAWPAW-Mirror/lib_xua
Added adat
This commit is contained in:
27
module_usb_audio_adat/src/adatreceiver.h
Normal file
27
module_usb_audio_adat/src/adatreceiver.h
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
/** ADAT Receive Thread (48kHz sample rate).
|
||||
*
|
||||
* \param p ADAT port - should be 1-bit and clocked at 100MHz
|
||||
* \param oChan channel on which decoded samples are output
|
||||
*
|
||||
* 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.
|
||||
**/
|
||||
void adatReceiver48000(buffered in port:32 p, chanend oChan);
|
||||
|
||||
/** ADAT Receive Thread (44.1kHz sample rate).
|
||||
*
|
||||
* \param p ADAT port - should be 1-bit and clocked at 100MHz
|
||||
* \param oChan channel on which decoded samples are output
|
||||
*
|
||||
* 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.
|
||||
**/
|
||||
|
||||
void adatReceiver44100(buffered in port:32 p, chanend oChan);
|
||||
Reference in New Issue
Block a user