| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
FSK Modem Support. More...
Go to the source code of this file.
| Data Structures | |
| struct | filter_struct | 
| struct | fsk_data | 
| Macros | |
| #define | NCOLA 0x4000 | 
| #define | PARITY_EVEN 1 | 
| #define | PARITY_NONE 0 | 
| #define | PARITY_ODD 2 | 
| Functions | |
| int | fsk_serial (fsk_data *fskd, short *buffer, int *len, int *outbyte) | 
| 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. | |
| int | fskmodem_init (fsk_data *fskd) | 
FSK Modem Support.
Definition in file fskmodem_int.h.
| #define NCOLA 0x4000 | 
Definition at line 32 of file fskmodem_int.h.
| #define PARITY_EVEN 1 | 
Definition at line 28 of file fskmodem_int.h.
| #define PARITY_NONE 0 | 
Definition at line 27 of file fskmodem_int.h.
| #define PARITY_ODD 2 | 
Definition at line 29 of file fskmodem_int.h.
| int fsk_serial | ( | fsk_data * | fskd, | 
| short * | buffer, | ||
| int * | len, | ||
| int * | outbyte | ||
| ) | 
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.
| 0 | Still looking for something... | 
| 1 | An output byte was received and stored in outbyte | 
| -1 | An error occured in the transmission He must be called with at least 80 bytes of buffer. | 
Definition at line 224 of file fskmodem_float.c.
References a, get_bit_raw(), idemodulator(), IGET_SAMPLE, fsk_data::instop, fsk_data::ispb, len(), fsk_data::nbit, fsk_data::parity, fsk_data::state, STATE_GET_BYTE, STATE_SEARCH_STARTBIT, STATE_SEARCH_STARTBIT2, STATE_SEARCH_STARTBIT3, fsk_data::xi1, and fsk_data::xi2.
| int fskmodem_init | ( | fsk_data * | fskd | ) | 
Definition at line 195 of file fskmodem_int.c.
References fsk_data::bw, coef_in, coef_out, fsk_data::demod_filter, fsk_data::f_mark_idx, fsk_data::f_space_idx, filter_struct::icoefs, filter_struct::ip, filter_struct::ixv, filter_struct::iyv, fsk_data::mark_filter, and fsk_data::space_filter.
Referenced by callerid_new(), and tdd_new().