#include using namespace std; #include #include #include #include #define VS4_BASE_ADDR 0x8000 // VME A16 address handles for GEF library GEF_VME_MASTER_HDL a16_hdl; GEF_MAP_HDL a16map_hdl; GEF_VME_ADDR addr_A16; void *a16p; typedef struct { unsigned char _unused1; unsigned char data; unsigned char _unused2; unsigned char done; unsigned char _unused3; unsigned char control; unsigned char _unused4; unsigned char status; unsigned char _unused5; unsigned char interrupt; }vs4_register_t; volatile vs4_register_t *vs4_register=NULL; enum done_register_t{ XAXIS, YAXIS, ZAXIS, TAXIS }; void PrintError(const char *mess, GEF_STATUS status); //---------------------- // main //---------------------- int main(int narg, char *argv[]) { GEF_VME_BUS_HDL hdl; GEF_STATUS status; GEF_UINT16 id = 0, sdata = 0; cout<<"Testing Communication with VS4 board at base addr:"; cout<<" 0x"<interrupt<interrupt = 0x07; cout<<"Current value of interrupt register: 0x"<interrupt<