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

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

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