00001 #ifndef _par_h_included
00002 #define _par_h_included
00003
00004
00005
00006 #define NOTBUSY 0x080
00007 #define NOTACK 0x040
00008 #define PAPER_OUT 0x020
00009 #define SELECTED 0x010
00010 #define NOERROR 0x008
00011
00012
00013
00014
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
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
00034 #define REG_DATA 0
00035 #define REG_STAT 1
00036 #define REG_CNTL 2
00037
00038
00039 #endif