/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Voice play Mode define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define IDV_CELP 1 #define IDV_ADPCM 2 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Voice play Destination ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define IDV_LINE 1 #define IDV_SPEAKER 2 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ in / out buffer define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define IN_BUFFER 1 #define OUT_BUFFER 2 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Flow Control Define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define FC_XONXOFF 1 #define FC_HARDWARE 2 #define FC_NONE 3 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Flow Control Define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define DM_TONE 1 #define DM_PULSE 2 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ port operating modes ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define ASIN 0xF8 #define ASOUT 0xF1 #define ASINOUT 0xF9 #define ASNOFL 0xFB #define ASHARD 0xF2 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Ctrl-C detect disable / enable and transimit disable / enable ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define DETANDSTOP 3 #define DETANDTX 1 #define NODETECT 0 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ datalens const define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define DATA5 0 #define DATA6 1 #define DATA7 2 #define DATA8 3 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ parity const define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define NOPAR 0 #define ODDPAR 0x08 #define EVENPAR 0x18 #define MARKPAR 0 #define STICKPAR 0 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ stopbits const define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define STOP1 0 #define STOP2 4 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ baudrate const define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define BAUD300 0x40 #define BAUD600 0x60 #define BAUD1200 0x80 #define BAUD2400 0xA0 #define BAUD4800 0xC0 #define BAUD9600 0xE0 #define BAUD19200 0x0 #define BAUD38400 0x20 #define BAUD57K 0x20 #define BAUD115K 0x20 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ flag const define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define ON 1 #define OFF 0 #define TRUE 1 #define FALSE 0 #define YES 1 #define NO 0 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ isstat option define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define IMMEDIATE 0 #define CUMULATIVE 1 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Error codes returned by all functions OR in _aserror. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define IDR_SUCCESS 0 #define IDR_GENERALERROR -1 #define IDR_INVPORT -2 #define IDR_INUSE -3 #define IDR_INVBUFSIZE -4 #define IDR_NOMEMORY -5 #define IDR_NOTSETUP -6 #define IDR_INVPAR -7 #define IDR_BUFREMPTY -8 #define IDR_BUFRFULL -9 #define IDR_TIMEOUT -10 #define IDR_NOCTS -11 #define IDR_NOCD -12 #define IDR_NODSR -13 #define IDR_NO8250 -14 #define IDR_XMSTATUS -15 #define IDR_USERABORT -16 #define IDR_FILERR -17 #define IDR_XMERROR -18 #define IDR_NOWIDERX -19 #define IDR_CONFLICT -20 #define IDR_CRCMODE -21 #define IDR_NOHAYESOK -22 #define IDR_NOHAYESRESPONSE -23 #define IDR_NOTSUPPORTED -24 #define IDR_ILLEGALBAUDRATE -25 #define IDR_ILLEGALPARITY -26 #define IDR_ILLEGALWORDLENGTH -27 #define IDR_ILLEGALSTOPBITS -28 #define IDR_NOCOPYRIGHTNOTICE -29 #define IDR_DRIVERNOTINSTALLED -30 #define IDR_OVERFLOW -31 #define IDR_CONNECTFAILURE -32 #define IDR_DOSEXTENDERERROR -33 #define IDR_ILLEGALBOARDNUMBER -34 #define IDR_BOARDINUSE -35 #define IDR_HANDSHAKEBLOCK -36 #define IDR_MAXPORTSEXCEEDED -37 #define IDR_ILLEGALIRQ -38 #define IDR_IRQINUSE -39 #define IDR_USERDEFINEDERROR -75 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Communication port define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ #define COM1 0 #define COM2 1 #define COM3 2 #define COM4 3 /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ function define part ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ int FAR zyiopen(int, long, int, int, int); int FAR zyiinit(int, long, int, int, int); int FAR zyiquit(int); int FAR zyiputc(int, int); int FAR zyiputcabs(int, int); int FAR zyipeek(int); int FAR zydtr(int, int); int FAR zyigetc(int); int FAR zyixon(int); int FAR zyixoff(int); int FAR zyiclear(int, int); int FAR zyiflow(int, int); int FAR zyiusexonxoff(int, int); /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ break ISR variable define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ void breakReset (void); BOOL breakPressed (void); void FAR breakUnInstall (void); void FAR breakInstall(void); void FAR interrupt breakISR (void);