comparison spandsp-0.0.3/spandsp-0.0.3/src/spandsp/t30_fcf.h @ 5:f762bf195c4b

import spandsp-0.0.3
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 16:00:21 +0200
parents
children
comparison
equal deleted inserted replaced
4:26cd8f1ef0b1 5:f762bf195c4b
1 /*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * fcf.h - ITU T.30 fax control field definitions
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2003 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 General Public License version 2, as
14 * 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 General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 *
25 * $Id: t30_fcf.h,v 1.9 2006/10/24 13:45:28 steveu Exp $
26 */
27
28 /*! \file */
29
30 #if !defined(_T30_FCF_H_)
31 #define _T30_FCF_H_
32
33 /*! Initial identification messages */
34 /*! From the called to the calling terminal. */
35 #define T30_DIS 0x80 /*! Digital identification signal */
36 #define T30_CSI 0x40 /*! Called subscriber identification */
37 #define T30_NSF 0x20 /*! Non-standard facilities */
38
39 /*! Commands to send */
40 /*! From a calling terminal wishing to be a receiver, to a called terminal
41 which is capable of transmitting. */
42 #define T30_DTC 0x81 /*! Digital transmit command */
43 #define T30_CIG 0x41 /*! Calling subscriber identification */
44 #define T30_NSC 0x21 /*! Non-standard facilities command */
45 #define T30_PWD 0xC1 /*! Password */
46 #define T30_SEP 0xA1 /*! Selective polling */
47 #define T30_PSA 0x61 /*! Polled subaddress */
48 #define T30_CIA 0xE1 /*! Calling subscriber internet address */
49 #define T30_ISP 0x11 /*! Internet selective polling address */
50
51 /*! Commands to receive */
52 /*! From a calling terminal wishing to be a transmitter, to a called terminal
53 which is capable of receiving. */
54 #define T30_DCS 0x82 /*! Digital command signal */
55 #define T30_TSI 0x42 /*! Transmitting subscriber information */
56 #define T30_NSS 0x22 /*! Non-standard facilities set-up */
57 #define T30_SUB 0xC2 /*! Subaddress */
58 #define T30_SID 0xA2 /*! Sender identification */
59 /*! T30_TCF - Training check is a burst of 1.5s of zeros sent using the image modem */
60 #define T30_CTC 0x12 /*! Continue to correct */
61 #define T30_TSA 0x62 /*! Transmitting subscriber internet address */
62 #define T30_IRA 0xE2 /*! Internet routing address */
63
64 /*! Pre-message response signals */
65 /*! From the receiver to the transmitter. */
66 #define T30_CFR 0x84 /*! Confirmation to receive */
67 #define T30_FTT 0x44 /*! Failure to train */
68 #define T30_CTR 0xC4 /*! Response for continue to correct */
69 #define T30_CSA 0x24 /*! Called subscriber internet address */
70
71 /*! Post-message commands */
72 #define T30_EOM 0x8E /*! End of message */
73 #define T30_MPS 0x4E /*! Multipage signal */
74 #define T30_EOP 0x2E /*! End of procedure */
75 #define T30_PRI_EOM 0x9E /*! Procedure interrupt - end of procedure */
76 #define T30_PRI_MPS 0x5E /*! Procedure interrupt - multipage signal */
77 #define T30_PRI_EOP 0x3E /*! Procedure interrupt - end of procedure */
78 #define T30_EOS 0x1E /*! End of selection */
79 #define T30_PPS 0xBE /*! Partial page signal */
80 #define T30_EOR 0xCE /*! End of retransmission */
81 #define T30_RR 0x6E /*! Receiver ready */
82
83 /*! Post-message responses */
84 #define T30_MCF 0x8C /*! Message confirmation */
85 #define T30_RTP 0xCC /*! Retrain positive */
86 #define T30_RTN 0x4C /*! Retrain negative */
87 #define T30_PIP 0xAC /*! Procedure interrupt positive */
88 #define T30_PIN 0x2C /*! Procedure interrupt negative */
89 #define T30_PPR 0xBC /*! Partial page request */
90 #define T30_RNR 0xEC /*! Receive not ready */
91 #define T30_ERR 0x1C /*! Response for end of retransmission */
92 #define T30_FDM 0xFC /*! File diagnostics message */
93
94 /*! Other line control signals */
95 #define T30_DCN 0xFA /*! Disconnect */
96 #define T30_CRP 0x1A /*! Command repeat */
97 #define T30_FNV 0xCA /*! Field not valid */
98 #define T30_TNR 0xEA /*! Transmit not ready */
99 #define T30_TR 0x6A /*! Transmit ready */
100 #define T30_PID 0x6C /*! Procedure interrupt disconnect */
101
102 /*! Something only use as a secondary value in error correcting mode */
103 #define T30_NULL 0x00 /*! Nothing to say */
104
105 /*! Information frame types used for error correction mode, in T.4 */
106 #define T4_FCD 0x06 /*! Facsimile coded data */
107 #define T4_RCP 0x86 /*! Return to control for partial page */
108
109 #endif
110 /*- End of file ------------------------------------------------------------*/

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.