/**********************************************************************
linecode()
***********************************************************************
Description:
This star inputs 0/1 binary data and outputs various line codes.
Line codes are selectable by the first input parameter `code_type':
0 - Binary (NRZ) (1 = +1, 0 = -1) (Default; 1 phase)
1 - Biphase (Manchester) (1 = -1,+1; 0 = +1,-1) (2 phase)
2 - 2B1Q (00 = -3, 01 = -1, 10 = +1, 11 = +3) (1 phase)
3 - RZ-AMI (Alternate mark inversion)
The code output oversampling rate (samples per baud interval) is
selected by the second parameter `smplbd'. Note that multi-phase
codes require oversampling rates which are integer multiples of the
number of phases!
I/O buffers are float to be compatible with most stars.
Output buffer 0: Over sampled symbols.
Output buffer 1 (optional): symbols at baud rate.
Programmer: L.J. Faber
Date: 11/25/86
Modified: 4/18/88 add 2B1Q
Modified: 5/88 add output1 as coded symbols, not oversampled
Modified: 6/88 change oversampling method to zero fill
linecode
This star inputs 0/1 binary data and outputs various line codes.
Line codes are selectable by the first input parameter `code_type':
0 - Binary (NRZ) (1 = +1, 0 = -1) (Default; 1 phase)
1 - Biphase (Manchester) (1 = -1,+1; 0 = +1,-1) (2 phase)
2 - 2B1Q (00 = -3, 01 = -1, 10 = +1, 11 = +3) (1 phase)
3 - RZ-AMI (Alternate mark inversion)
The code output oversampling rate (samples per baud interval) is
selected by the second parameter `smplbd'. Note that multi-phase
codes require oversampling rates which are integer multiples of the
number of phases!
I/O buffers are float to be compatible with most stars.
Output buffer 0: Over sampled symbols.
Output buffer 1 (optional): symbols at baud rate.
Programmer: L.J. Faber
Date: 11/25/86
Modified: 4/18/88 add 2B1Q
Modified: 5/88 add output1 as coded symbols, not oversampled
Modified: 6/88 change oversampling method to zero fill
*/