home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
print
/
psfax2
/
psfax2.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-12
|
2KB
|
85 lines
#define INCL_DOSDEVIOCTL /* For serial I/O control */
#include <os2.h>
#define MAXPSFILES 20
#define LONGTIMEOUT 20 /* In seconds */
#define SHORTTIMEOUT 1 /* In seconds */
#define MAXTIMEOUTS 200
#define SENDCHUNK 1024
#define MAXRESPLEN 256
/*Modem return codes. */
#define DIAL_NOCARRIER 3
#define DIAL_NODIALTONE 6
#define DIAL_BUSY 7
#define DIAL_NOANSWER 8
#define DIAL_UNKNOWN -1
/************Fax init codes.************/
/* vertical resolution */
#define VR_NORMAL 0
#define VR_FINE 1
/* baud rate */
#define BR_2400 0
#define BR_4800 1
#define BR_7200 2
#define BR_9600 3
/* width */
#define WD_1728 0
#define WD_2048 1
#define WD_2432 2
/* page length */
#define LN_A4 0
#define LN_B4 1
#define LN_UNLIMITED 2
/* data format */
#define DF_1DHUFFMAN 0
#define DF_2DMREAD 1
#define DF_2DUNCOMP 2
/* error correction */
#define EC_DA_ECM 0
#define EC_EN_ECM_64 1
#define EC_EN_ECM_256 2
/* binary file */
#define BF_DISABLED 0
#define BF_ENABLED 1
/* scan time */
#define ST_0 0
#define ST_1 1
#define ST_2 2
#define ST_3 3
#define ST_4 4
#define ST_5 5
#define ST_6 6
#define ST_7 7
/*Various. */
#define DLE '\020'
#define ETX '\003'
#define CAN '\030'
/** Post page response codes: **/
#define PPR_PPR 0 /* partial page errors. */
#define PPR_MCF 1 /* page good */
#define PPR_RTN 2 /* page bad; retrans requested */
#define PPR_RTP 3 /* page good; retrans requested */
#define PPR_PIN 4 /* page bad; interrupt requested */
#define PPR_PIP 5 /* page good; interrupt requested */
/**Transmission codes. **/
#define PEND_ANOTHER 0
#define PEND_ENDTRAN 1