Asterisk - The Open Source Telephony Project
21.4.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
include
asterisk
fskmodem_int.h
Go to the documentation of this file.
1
/*
2
* Asterisk -- An open source telephony toolkit.
3
*
4
* Copyright (C) 1999 - 2005, Digium, Inc.
5
*
6
* Mark Spencer <markster@digium.com>
7
*
8
* See http://www.asterisk.org for more information about
9
* the Asterisk project. Please do not directly contact
10
* any of the maintainers of this project for assistance;
11
* the project provides a web site, mailing lists and IRC
12
* channels for your use.
13
*
14
* This program is free software, distributed under the terms of
15
* the GNU General Public License Version 2. See the LICENSE file
16
* at the top of the source tree.
17
*/
18
19
/*! \file
20
* \brief FSK Modem Support
21
* \note Includes code and algorithms from the Zapata library.
22
*/
23
24
#ifndef _ASTERISK_FSKMODEM_H
25
#define _ASTERISK_FSKMODEM_H
26
27
#define PARITY_NONE 0
28
#define PARITY_EVEN 1
29
#define PARITY_ODD 2
30
31
32
#define NCOLA 0x4000
33
34
/* new filter structure */
35
struct
filter_struct
{
36
37
int
icoefs[8];
38
int
ip;
39
int
ixv[8];
40
int
iyv[8];
41
};
42
43
typedef
struct
{
44
int
nbit;
/*!< Number of Data Bits (5,7,8) */
45
int
parity;
/*!< Parity 0=none 1=even 2=odd */
46
int
instop
;
/*!< Number of Stop Bits */
47
int
hdlc;
/*!< Modo Packet */
48
int
xi0;
49
int
xi1;
50
int
xi2;
51
52
int
ispb;
53
int
icont;
54
int
bw;
/*!< Band Selector*/
55
int
f_mark_idx;
/*!< Mark Frequency Index (f_M-500)/5 */
56
int
f_space_idx;
/*!< Space Frequency Index (f_S-500)/5 */
57
int
state
;
58
59
int
pllispb
;
/*!<Pll autosense */
60
int
pllids;
61
int
pllispb2;
62
63
struct
filter_struct
mark_filter;
64
struct
filter_struct
space_filter;
65
struct
filter_struct
demod_filter;
66
67
}
fsk_data
;
68
69
int
fsk_serial
(
fsk_data
*fskd,
short
*buffer,
int
*len,
int
*outbyte);
70
int
fskmodem_init(
fsk_data
*fskd);
71
72
#endif
/* _ASTERISK_FSKMODEM_H */
fsk_data
Definition:
fskmodem_float.h:34
fsk_serial
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 ...
Definition:
fskmodem_float.c:224
filter_struct
Definition:
fskmodem_int.h:35
fsk_data::instop
int instop
Definition:
fskmodem_int.h:46
fsk_data::pllispb
int pllispb
Definition:
fskmodem_int.h:59
state
Definition:
localtime.c:158
Generated on Tue Jul 15 2025 11:50:39 for Asterisk - The Open Source Telephony Project by
1.8.10