00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * fcf.h - ITU T.30 fax control field definitions 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2003 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License version 2, as 00014 * published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 * 00025 * $Id: t30_fcf.h,v 1.11 2007/12/13 11:31:33 steveu Exp $ 00026 */ 00027 00028 /*! \file */ 00029 00030 #if !defined(_SPANDSP_T30_FCF_H_) 00031 #define _SPANDSP_T30_FCF_H_ 00032 00033 enum 00034 { 00035 /*! Initial identification messages */ 00036 /*! From the called to the calling terminal. */ 00037 T30_DIS = 0x80, /*! Digital identification signal */ 00038 T30_CSI = 0x40, /*! Called subscriber identification */ 00039 T30_NSF = 0x20, /*! Non-standard facilities */ 00040 00041 /*! Commands to send */ 00042 /*! From a calling terminal wishing to be a receiver, to a called terminal 00043 which is capable of transmitting. */ 00044 T30_DTC = 0x81, /*! Digital transmit command */ 00045 T30_CIG = 0x41, /*! Calling subscriber identification */ 00046 T30_NSC = 0x21, /*! Non-standard facilities command */ 00047 T30_PWD = 0xC1, /*! Password */ 00048 T30_SEP = 0xA1, /*! Selective polling */ 00049 T30_PSA = 0x61, /*! Polled subaddress */ 00050 T30_CIA = 0xE1, /*! Calling subscriber internet address */ 00051 T30_ISP = 0x11, /*! Internet selective polling address */ 00052 00053 /*! Commands to receive */ 00054 /*! From a calling terminal wishing to be a transmitter, to a called terminal 00055 which is capable of receiving. */ 00056 T30_DCS = 0x82, /*! Digital command signal */ 00057 T30_TSI = 0x42, /*! Transmitting subscriber information */ 00058 T30_NSS = 0x22, /*! Non-standard facilities set-up */ 00059 T30_SUB = 0xC2, /*! Subaddress */ 00060 T30_SID = 0xA2, /*! Sender identification */ 00061 /*! T30_TCF - Training check is a burst of 1.5s of zeros sent using the image modem */ 00062 T30_CTC = 0x12, /*! Continue to correct */ 00063 T30_TSA = 0x62, /*! Transmitting subscriber internet address */ 00064 T30_IRA = 0xE2, /*! Internet routing address */ 00065 00066 /*! Pre-message response signals */ 00067 /*! From the receiver to the transmitter. */ 00068 T30_CFR = 0x84, /*! Confirmation to receive */ 00069 T30_FTT = 0x44, /*! Failure to train */ 00070 T30_CTR = 0xC4, /*! Response for continue to correct */ 00071 T30_CSA = 0x24, /*! Called subscriber internet address */ 00072 00073 /*! Post-message commands */ 00074 T30_EOM = 0x8E, /*! End of message */ 00075 T30_MPS = 0x4E, /*! Multipage signal */ 00076 T30_EOP = 0x2E, /*! End of procedure */ 00077 T30_PRI_EOM = 0x9E, /*! Procedure interrupt - end of procedure */ 00078 T30_PRI_MPS = 0x5E, /*! Procedure interrupt - multipage signal */ 00079 T30_PRI_EOP = 0x3E, /*! Procedure interrupt - end of procedure */ 00080 T30_EOS = 0x1E, /*! End of selection */ 00081 T30_PPS = 0xBE, /*! Partial page signal */ 00082 T30_EOR = 0xCE, /*! End of retransmission */ 00083 T30_RR = 0x6E, /*! Receiver ready */ 00084 00085 /*! Post-message responses */ 00086 T30_MCF = 0x8C, /*! Message confirmation */ 00087 T30_RTP = 0xCC, /*! Retrain positive */ 00088 T30_RTN = 0x4C, /*! Retrain negative */ 00089 T30_PIP = 0xAC, /*! Procedure interrupt positive */ 00090 T30_PIN = 0x2C, /*! Procedure interrupt negative */ 00091 T30_PPR = 0xBC, /*! Partial page request */ 00092 T30_RNR = 0xEC, /*! Receive not ready */ 00093 T30_ERR = 0x1C, /*! Response for end of retransmission */ 00094 T30_FDM = 0xFC, /*! File diagnostics message */ 00095 00096 /*! Other line control signals */ 00097 T30_DCN = 0xFA, /*! Disconnect */ 00098 T30_CRP = 0x1A, /*! Command repeat */ 00099 T30_FNV = 0xCA, /*! Field not valid */ 00100 T30_TNR = 0xEA, /*! Transmit not ready */ 00101 T30_TR = 0x6A, /*! Transmit ready */ 00102 T30_PID = 0x6C, /*! Procedure interrupt disconnect */ 00103 00104 /*! Something only use as a secondary value in error correcting mode */ 00105 T30_NULL = 0x00, /*! Nothing to say */ 00106 00107 /*! Information frame types used for error correction mode, in T.4 */ 00108 T4_FCD = 0x06, /*! Facsimile coded data */ 00109 T4_RCP = 0x86 /*! Return to control for partial page */ 00110 }; 00111 00112 #endif 00113 /*- End of file ------------------------------------------------------------*/