Version 1.0 06/2001 |
break; default : break;
}
return value;
}
2.2.4Software 32 bits encoder counter
// demo1.cpp for
// 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 |
http://www.icpdas.com | ICPDAS |