Mercurial > hg > audiostuff
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spandsp-0.0.3/spandsp-0.0.3/src/spandsp/t30_fcf.h Fri Jun 25 16:00:21 2010 +0200 @@ -0,0 +1,110 @@ +/* + * SpanDSP - a series of DSP components for telephony + * + * fcf.h - ITU T.30 fax control field definitions + * + * Written by Steve Underwood <steveu@coppice.org> + * + * Copyright (C) 2003 Steve Underwood + * + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * $Id: t30_fcf.h,v 1.9 2006/10/24 13:45:28 steveu Exp $ + */ + +/*! \file */ + +#if !defined(_T30_FCF_H_) +#define _T30_FCF_H_ + +/*! Initial identification messages */ +/*! From the called to the calling terminal. */ +#define T30_DIS 0x80 /*! Digital identification signal */ +#define T30_CSI 0x40 /*! Called subscriber identification */ +#define T30_NSF 0x20 /*! Non-standard facilities */ + +/*! Commands to send */ +/*! From a calling terminal wishing to be a receiver, to a called terminal + which is capable of transmitting. */ +#define T30_DTC 0x81 /*! Digital transmit command */ +#define T30_CIG 0x41 /*! Calling subscriber identification */ +#define T30_NSC 0x21 /*! Non-standard facilities command */ +#define T30_PWD 0xC1 /*! Password */ +#define T30_SEP 0xA1 /*! Selective polling */ +#define T30_PSA 0x61 /*! Polled subaddress */ +#define T30_CIA 0xE1 /*! Calling subscriber internet address */ +#define T30_ISP 0x11 /*! Internet selective polling address */ + +/*! Commands to receive */ +/*! From a calling terminal wishing to be a transmitter, to a called terminal + which is capable of receiving. */ +#define T30_DCS 0x82 /*! Digital command signal */ +#define T30_TSI 0x42 /*! Transmitting subscriber information */ +#define T30_NSS 0x22 /*! Non-standard facilities set-up */ +#define T30_SUB 0xC2 /*! Subaddress */ +#define T30_SID 0xA2 /*! Sender identification */ +/*! T30_TCF - Training check is a burst of 1.5s of zeros sent using the image modem */ +#define T30_CTC 0x12 /*! Continue to correct */ +#define T30_TSA 0x62 /*! Transmitting subscriber internet address */ +#define T30_IRA 0xE2 /*! Internet routing address */ + +/*! Pre-message response signals */ +/*! From the receiver to the transmitter. */ +#define T30_CFR 0x84 /*! Confirmation to receive */ +#define T30_FTT 0x44 /*! Failure to train */ +#define T30_CTR 0xC4 /*! Response for continue to correct */ +#define T30_CSA 0x24 /*! Called subscriber internet address */ + +/*! Post-message commands */ +#define T30_EOM 0x8E /*! End of message */ +#define T30_MPS 0x4E /*! Multipage signal */ +#define T30_EOP 0x2E /*! End of procedure */ +#define T30_PRI_EOM 0x9E /*! Procedure interrupt - end of procedure */ +#define T30_PRI_MPS 0x5E /*! Procedure interrupt - multipage signal */ +#define T30_PRI_EOP 0x3E /*! Procedure interrupt - end of procedure */ +#define T30_EOS 0x1E /*! End of selection */ +#define T30_PPS 0xBE /*! Partial page signal */ +#define T30_EOR 0xCE /*! End of retransmission */ +#define T30_RR 0x6E /*! Receiver ready */ + +/*! Post-message responses */ +#define T30_MCF 0x8C /*! Message confirmation */ +#define T30_RTP 0xCC /*! Retrain positive */ +#define T30_RTN 0x4C /*! Retrain negative */ +#define T30_PIP 0xAC /*! Procedure interrupt positive */ +#define T30_PIN 0x2C /*! Procedure interrupt negative */ +#define T30_PPR 0xBC /*! Partial page request */ +#define T30_RNR 0xEC /*! Receive not ready */ +#define T30_ERR 0x1C /*! Response for end of retransmission */ +#define T30_FDM 0xFC /*! File diagnostics message */ + +/*! Other line control signals */ +#define T30_DCN 0xFA /*! Disconnect */ +#define T30_CRP 0x1A /*! Command repeat */ +#define T30_FNV 0xCA /*! Field not valid */ +#define T30_TNR 0xEA /*! Transmit not ready */ +#define T30_TR 0x6A /*! Transmit ready */ +#define T30_PID 0x6C /*! Procedure interrupt disconnect */ + +/*! Something only use as a secondary value in error correcting mode */ +#define T30_NULL 0x00 /*! Nothing to say */ + +/*! Information frame types used for error correction mode, in T.4 */ +#define T4_FCD 0x06 /*! Facsimile coded data */ +#define T4_RCP 0x86 /*! Return to control for partial page */ + +#endif +/*- End of file ------------------------------------------------------------*/