spandsp
0.0.6
Main Page
Related Pages
Classes
Files
File List
File Members
private/v18.h
1
/*
2
* SpanDSP - a series of DSP components for telephony
3
*
4
* private/v18.h - V.18 text telephony for the deaf.
5
*
6
* Written by Steve Underwood <steveu@coppice.org>
7
*
8
* Copyright (C) 2004-2009 Steve Underwood
9
*
10
* All rights reserved.
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 2.1,
14
* as published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public
22
* License along with this program; if not, write to the Free Software
23
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
*/
25
26
#if !defined(_SPANDSP_PRIVATE_V18_H_)
27
#define _SPANDSP_PRIVATE_V18_H_
28
29
struct
v18_state_s
30
{
31
/*! \brief TRUE if we are the calling modem */
32
int
calling_party
;
33
int
mode;
34
put_msg_func_t
put_msg;
35
void
*user_data;
36
37
union
38
{
39
queue_state_t
queue;
40
uint8_t buf[QUEUE_STATE_T_SIZE(128)];
41
} queue;
42
tone_gen_descriptor_t
alert_tone_desc;
43
tone_gen_state_t
alert_tone_gen;
44
fsk_tx_state_t
fsktx;
45
dtmf_tx_state_t
dtmftx;
46
async_tx_state_t
asynctx;
47
int
baudot_tx_shift;
48
int
tx_signal_on;
49
int
byte_no;
50
51
fsk_rx_state_t
fskrx;
52
dtmf_rx_state_t
dtmfrx;
53
int
baudot_rx_shift;
54
int
consecutive_ones;
55
uint8_t rx_msg[256 + 1];
56
int
rx_msg_len;
57
int
bit_pos;
58
int
in_progress;
59
60
/*! \brief Error and flow logging control */
61
logging_state_t
logging
;
62
};
63
64
#endif
65
/*- End of file ------------------------------------------------------------*/
src
spandsp
private
v18.h
Generated on Mon Sep 10 2012 11:04:50 for spandsp by
1.8.1.2