Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/private/v18.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
---|---|
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 * $Id: v18.h,v 1.5 2009/11/04 15:52:06 steveu Exp $ | |
26 */ | |
27 | |
28 #if !defined(_SPANDSP_PRIVATE_V18_H_) | |
29 #define _SPANDSP_PRIVATE_V18_H_ | |
30 | |
31 struct v18_state_s | |
32 { | |
33 /*! \brief TRUE if we are the calling modem */ | |
34 int calling_party; | |
35 int mode; | |
36 put_msg_func_t put_msg; | |
37 void *user_data; | |
38 | |
39 union | |
40 { | |
41 queue_state_t queue; | |
42 uint8_t buf[QUEUE_STATE_T_SIZE(128)]; | |
43 } queue; | |
44 tone_gen_descriptor_t alert_tone_desc; | |
45 tone_gen_state_t alert_tone_gen; | |
46 fsk_tx_state_t fsktx; | |
47 dtmf_tx_state_t dtmftx; | |
48 async_tx_state_t asynctx; | |
49 int baudot_tx_shift; | |
50 int tx_signal_on; | |
51 int byte_no; | |
52 | |
53 fsk_rx_state_t fskrx; | |
54 dtmf_rx_state_t dtmfrx; | |
55 int baudot_rx_shift; | |
56 int consecutive_ones; | |
57 uint8_t rx_msg[256 + 1]; | |
58 int rx_msg_len; | |
59 int bit_pos; | |
60 int in_progress; | |
61 | |
62 /*! \brief Error and flow logging control */ | |
63 logging_state_t logging; | |
64 }; | |
65 | |
66 #endif | |
67 /*- End of file ------------------------------------------------------------*/ |