HP 9000 Series 300 Tutorials Manual page 183

Device i/o and user interfacing hp-ux concepts and tutorials
Hide thumbs Also See for HP 9000 Series 300:
Table of Contents

Advertisement

63
64
65
66
67
68
69
70
71
72
73
74
/* masks for io status byte in case of 2608A */
#define
PR_CPOW OxOO01
#define
PR_I_OPSTAT Ox0040
#define
PR_CLINE Ox0080
/* masks for io status byte the rest of the printers */
#define
PR_I_POWER OxOO01
#define
PR_I_PAPER OxOO02
#define
PR_I_PARITY OxOO08
#define
PR_I_RFD Ox0040
#define
PR_I_ONLINE Ox0080
75
/* define printer types */
76
#define T2608A
1
77
#define T2631A
2
78
#define T2631B
3
79
#define T2673A
4
80
#define QjetPlus 5
81
#define T2632A
6
82
#define T2634A
7
83
84
int ptr_type; /* type of printer */
85
86
/* setup defines for fatal returns */
87
#define F_RTRN
1
88
#define F_EXIT
0
89
90
/* setup defines for HP-IB_msg */
91
#define H_READ
1
92
#define H_WRITE
2
93
#define H_CMND
4
94
95
/* default timeout value (in seconds) to infinity
*1
96
int timeout
=
0;
97
98
1*
default size of output buffer to printer
*1
99
int bufsz
=
32;
100
OIL Programming Example
0-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents