/* A/D Data Registers */ #define ADCHIGH 0x300 #define ADCLOW 0x301 /* A/D Status and Control Register */ #define ADCSTATUS 0x302 /* Auxiliary port on analog bus */ #define AUXPORT 0x302 /* Programmable Gain Register */ #define GAIN 0x303 /* Counter Load & Read Registers */ #define LOADREAD1 0x304 #define LOADREAD2 0x305 #define LOADREAD3 0x306 /* Counter Control Register */ #define CCONFIGPORT 0x307 /* D/A 0 Control Registers */ #define DAC0LOW 0x308 #define DAC0HIGH 0x309 /* D/A 1 Control Registers */ #define DAC1LOW 0x30a #define DAC1HIGH 0x30b /* 82C55 Digital I/O Registers */ #define PORTA 0x30c #define PORTB 0x30d #define PORTCL 0x30e #define PORTCH 0x31e /* real port is 0x30e */ /* 82C55 Control Register */ #define DCONFIGPORT 0x30f #define DIGITALOUT 1 #define DIGITALIN 2 #define HIGHONLASTCOUNT 0 #define ONESHOT 1 #define RATEGENERATOR 2 #define SQUAREWAVE 3 #define SOFTWARESTROBE 4 #define HARDWARESTROBE 5 /* Range Codes */ #define BIP10VOLTS 0x08 #define BIP5VOLTS 0x00 #define BIP2PT5VOLTS 0x02 #define BIP1PT25VOLTS 0x04 #define BIPPT625VOLTS 0x06 #define UNI10VOLTS 0x01 #define UNI5VOLTS 0x03 #define UNI2PT5VOLTS 0x05 #define UNI1PT25VOLTS 0x07 #include "DBitOut.c" #include "DConfigPort.c" #include "DIn.c" #include "DBitIn.c" #include "DOut.c" #include "C8254Config.c" #include "CIn.c" #include "CLoad.c" #include "AOut.c"