#ifndef GPIB_H #define GPIB_H /* GPIB commands*/ #define GTL 0x01 #define SDC 0x04 #define PPC 0x05 #define GET 0x08 #define TCT 0x09 #define LLO 0x11 #define DCL 0x14 #define PPU 0x15 #define SPE 0x18 #define SPD 0x19 #define MLA 0x20 // 0x20 - 0x3e #define UNL 0x3f #define MTA 0x40 // 0x40 - 0x5e #define UNT 0x5f #define MSA 0x60 // 0x60 - 0x7e #define PPE 0x60 #define PPD 0x70 /* GPIB end of string */ #define EOS 0x0a /* these depend on wiring !! */ #define EOI 0x80 /* LPT 8th data bit */ #define ATN 0x08 /* LPT pin 17 */ void lptgpib_print_command(unsigned char val); void lptgpib_init(int base); char lptgpib_read_byte(char *_flags); void lptgpib_write_byte(char value, char flags); int lptgpib_read_data(char *dest, int size); void lptgpib_write_data(char *src, int size); void lptgpib_command(char value); int lptgpib_read(int address, char *dest, int size); void lptgpib_write(int address, char *src); #endif