28 lines
1.2 KiB
C
28 lines
1.2 KiB
C
|
|
/** 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);
|