#define REOS	0x0400		
#define XEOS	0x0800		
#define GPIB_BIN 0x1000		
#define DCL	0x14		
#define GET	0x08		
#define GTL	0x01		
#define LAD	0x20		
#define LLO	0x11		
#define PPC	0x05		
#define PPD	0x70		
#define PPE	0x60		
#define PPU	0x15		
#define SDC	0x04		
#define SPD	0x19		
#define SPE	0x18		
#define TAD	0x40		
#define TCT	0x09		
#define UNL	0x3f		
#define UNT	0x5f		

#define ERR	(1<<15)		
#define TIMO	(1<<14)		
#define END	(1<<13)		
#define SRQI	(1<<12)		
#define RQS	(1<<11)		
#define SPOLL	(1<<10)		
#define EVENT	(1<<9)		
#define CMPL	(1<<8)		
#define LOK	(1<<7)		
#define REM	(1<<6)		
#define CIC	(1<<5)		
#define ATN	(1<<4)		
#define TACS	(1<<3)		
#define LACS	(1<<2)		
#define DTAS	(1<<1)		
#define DCAS	(1<<0)		

#define EDVR	0		
#define ECIC	1		
#define ENOL	2		
#define EADR	3		
#define EARG	4		
#define ESAC	5		
#define EABO	6		
#define ENEB	7		
#define EDMA	8		
#define EBTO	9		
#define EOIP	10		
#define ECAP	11		
#define EFSO	12		
#define EOWN 	13		
#define EBUS	14		
#define ESTB	15		
#define ESRQ	16		
#define ETAB	20		
#define ELCK	21		

#define TNONE	0		
#define T10us	1		
#define T30us	2		
#define T100us	3		
#define T300us	4		
#define T1ms	5		
#define T3ms	6		
#define T10ms	7		
#define T30ms	8		
#define T100ms	9		
#define T300ms	10		
#define T1s	11		
#define T3s	12		
#define T10s	13		
#define T30s	14		
#define T100s	15		
#define T300s	16		
#define T1000s	17		
