ICP DAS USA I-8090 3-axis encoder card Computer Hardware User Manual


 
I-8090 User Manual Version 1.0 06/2001
http://www.icpdas.com 1-20 ICPDAS
break;
default : break;
}
return value;
}
2.2.4 Software 32 bits encoder counter programming
//--------------------------------------------------------------------
// demo1.cpp for I-8090 card
// This program demostrates the software 32 bits encoder method by
// void i8090_ENCODER32_ISR(unsigned char cardNo);
// void i8090_RESET_ENCODER32(unsigned char cardNo, unsigned char
axis);
// long i8090_GET_ENCODER32(unsigned char cardNo, unsigned char
axis);
//--------------------------------------------------------------------
// v1.0 4/7/2001
//
//--------------------------------------------------------------------
#include <dos.h>
#include <math.h>
#include "8000.h"
#include "i8090.h"
#define i8090 0x0d
#define i8091 0x0e
#define i8092 0x0f
#define NOCARD 0x00
#define Insert 0x0000
#define BasePort 0x0080
#define SlotOffset 0x0020
#define IDPort 0x0000