Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/QNX4/driver/Par2/par.h

Go to the documentation of this file.
00001 #ifndef _par_h_included
00002 #define _par_h_included
00003 
00004 /* status bits */
00005 #define  NOTBUSY     0x080    /* 0 when printer is 'busy' */
00006 #define  NOTACK      0x040    /* 0 printer is 'ready' */
00007 #define  PAPER_OUT   0x020    /* 1 paper-out sensor raised */
00008 #define  SELECTED    0x010    /* 1 printer is 'selected' (online) */
00009 #define  NOERROR     0x008    /* 0 printer has detected an error */
00010 
00011 /* control bits */
00012 #define  IRQ_ENABLE  0x010
00013 #define  SELECT      0x008
00014 #define  NOT_RESET   0x004
00015 #define  AUTO_FEED   0x002
00016 #define  STROBE      0x001
00017 
00018 /* if printer[STAT_PORT] & STATUS_MASK == STATUS_OK */
00019 #define  STATUS_MASK (NOTBUSY | PAPER_OUT | SELECTED)
00020 #define  STATUS_OK   (NOTBUSY | SELECTED)
00021 #define  CTL_BITS    (SELECT  | NOT_RESET)
00022 
00023 #define  STROBE_ON(x)   ( (x) | (CTL_BITS|STROBE))
00024 #define  STROBE_OFF(x)  (((x) | (CTL_BITS)) & ~STROBE)
00025 
00026 /* register addresses */
00027 #define  REG_DATA 0
00028 #define  REG_STAT 1
00029 #define  REG_CNTL 2
00030 
00031 #endif

Generated on Sun Oct 14 18:46:41 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001