2
* Asterisk -- A telephony toolkit for Linux.
6
* Copyright (C) 1999, Mark Spencer
8
* Mark Spencer <markster@linux-support.net>
10
* This program is free software, distributed under the terms of
11
* the GNU General Public License.
13
* Includes code and algorithms from the Zapata library.
28
float spb; /* Samples / Bit */
29
int nbit; /* Number of Data Bits (5,7,8) */
30
float nstop; /* Number of Stop Bits 1,1.5,2 */
31
int paridad; /* Parity 0=none 1=even 2=odd */
32
int hdlc; /* Modo Packet */
37
int bw; /* Ancho de Banda */
38
double fmxv[8],fmyv[8]; /* filter stuff for M filter */
39
int fmp; /* pointer for M filter */
40
double fsxv[8],fsyv[8]; /* filter stuff for S filter */
41
int fsp; /* pointer for S filter */
42
double flxv[8],flyv[8]; /* filter stuff for L filter */
43
int flp; /* pointer for L filter */
44
int f_mark_idx; /* Indice de frecuencia de marca (f_M-500)/5 */
45
int f_space_idx;/* Indice de frecuencia de espacio (f_S-500)/5 */
47
int pcola; /* Puntero de las colas de datos */
48
float cola_in[NCOLA]; /* Cola de muestras de entrada */
49
float cola_filtro[NCOLA]; /* Cola de muestras tras filtros */
50
float cola_demod[NCOLA]; /* Cola de muestras demoduladas */
53
/* Retrieve a serial byte into outbyte. Buffer is a pointer into a series of
54
shorts and len records the number of bytes in the buffer. len will be
55
overwritten with the number of bytes left that were not consumed, and the
56
return value is as follows:
57
0: Still looking for something...
58
1: An output byte was received and stored in outbyte
59
-1: An error occured in the transmission
60
He must be called with at least 80 bytes of buffer. */
61
extern int fsk_serie(fsk_data *fskd, short *buffer, int *len, int *outbyte);