HA243821
Issue 5 Mar 98
Section5
Page 5 - 51
MODEL 346 INSTALLATION AND OPERATION MANUAL
5.7.9 C PROGRAM (Cont.)
PROGRAM LISTING
/******************************************************************************
FILENAME
:
346tst.c
VERSION
:
1.0
AUTHOR
:
CMAN
SYSTEMS
:
MSDOS compiled with Microsoft C 6.0
DESCRIPTION
:
This program uses the EI Bisync protocol to talk to a 346
******************************************************************************/
#include
<stdio.h>
#include
<bios.h>
#include
<ctype.h>
#define
NUL
(char) 0x00
#define
NAK
(char) 0x15
#define
STX
(char) 0x02
#define
EOT
(char) 0x04
#define
ETX
(char) 0x03
#define
ENQ
(char) 0x05
#define
ACK
(char) 0x06
#define
TRE
0x8000
void send_byte(int,char);
void send_address(int,char *);
void init_port(int,int);
char poll_value( int, char *, char *, char *, char * );
char select_cmd( int, char *, char *, char *, char * );
char get_reply( int, char * )
char get_byte( int );
char get_byte( int );
char get_byte_filt( int );