aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/fskmodem.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-06 15:09:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-06 15:09:47 +0000
commitd3ddc001a22ebbbea8ff3601fe8698edff8e7f05 (patch)
treec8881054a6bb8d0179b2d87d3a1e5a7badad305c /include/asterisk/fskmodem.h
parent07d34af56d8086e3984209b306dbe03fffa1ff4a (diff)
issue #5605
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6979 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/fskmodem.h')
-rwxr-xr-xinclude/asterisk/fskmodem.h47
1 files changed, 24 insertions, 23 deletions
diff --git a/include/asterisk/fskmodem.h b/include/asterisk/fskmodem.h
index 62b584ba4..ea863fc2f 100755
--- a/include/asterisk/fskmodem.h
+++ b/include/asterisk/fskmodem.h
@@ -19,6 +19,7 @@
/*! \file
* \brief FSK Modem Support
* \note Includes code and algorithms from the Zapata library.
+ * \todo Translate Emiliano Zapata's spanish comments to english, please.
*/
#ifndef _ASTERISK_FSKMODEM_H
@@ -32,39 +33,39 @@
#define NCOLA 0x4000
typedef struct {
- float spb; /* Samples / Bit */
- int nbit; /* Number of Data Bits (5,7,8) */
- float nstop; /* Number of Stop Bits 1,1.5,2 */
- int paridad; /* Parity 0=none 1=even 2=odd */
- int hdlc; /* Modo Packet */
+ float spb; /*!< Samples / Bit */
+ int nbit; /*!< Number of Data Bits (5,7,8) */
+ float nstop; /*!< Number of Stop Bits 1,1.5,2 */
+ int paridad; /*!< Parity 0=none 1=even 2=odd */
+ int hdlc; /*!< Modo Packet */
float x0;
float x1;
float x2;
float cont;
- int bw; /* Ancho de Banda */
- double fmxv[8],fmyv[8]; /* filter stuff for M filter */
- int fmp; /* pointer for M filter */
- double fsxv[8],fsyv[8]; /* filter stuff for S filter */
- int fsp; /* pointer for S filter */
- double flxv[8],flyv[8]; /* filter stuff for L filter */
- int flp; /* pointer for L filter */
- int f_mark_idx; /* Indice de frecuencia de marca (f_M-500)/5 */
- int f_space_idx;/* Indice de frecuencia de espacio (f_S-500)/5 */
+ int bw; /*!< Ancho de Banda */
+ double fmxv[8],fmyv[8]; /*!< filter stuff for M filter */
+ int fmp; /*!< pointer for M filter */
+ double fsxv[8],fsyv[8]; /*!< filter stuff for S filter */
+ int fsp; /*!< pointer for S filter */
+ double flxv[8],flyv[8]; /*!< filter stuff for L filter */
+ int flp; /*!< pointer for L filter */
+ int f_mark_idx; /*!< Indice de frecuencia de marca (f_M-500)/5 */
+ int f_space_idx; /*!< Indice de frecuencia de espacio (f_S-500)/5 */
int state;
- int pcola; /* Puntero de las colas de datos */
- float cola_in[NCOLA]; /* Cola de muestras de entrada */
- float cola_filtro[NCOLA]; /* Cola de muestras tras filtros */
- float cola_demod[NCOLA]; /* Cola de muestras demoduladas */
+ int pcola; /*!< Puntero de las colas de datos */
+ float cola_in[NCOLA]; /*!< Cola de muestras de entrada */
+ float cola_filtro[NCOLA]; /*!< Cola de muestras tras filtros */
+ float cola_demod[NCOLA]; /*!< Cola de muestras demoduladas */
} fsk_data;
/* \brief Retrieve a serial byte into outbyte.
Buffer is a pointer into a series of
shorts and len records the number of bytes in the buffer. len will be
- overwritten with the number of bytes left that were not consumed, and the
- return value is as follows:
- 0: Still looking for something...
- 1: An output byte was received and stored in outbyte
- -1: An error occured in the transmission
+ overwritten with the number of bytes left that were not consumed.
+ \return return value is as follows:
+ \arg 0: Still looking for something...
+ \arg 1: An output byte was received and stored in outbyte
+ \arg -1: An error occured in the transmission
He must be called with at least 80 bytes of buffer. */
extern int fsk_serie(fsk_data *fskd, short *buffer, int *len, int *outbyte);