/* --------------------------------------------------------------------------- * Header file of declarations and macro definitions * for ask and vme functions. * * Dipsy DIP switch setting for VME base address of the card. * * Author : J.B.Lane UCL March 1998 ask.h * --------------------------------------------------------------------------- */ #ifndef DIPSY_H #define DIPSY_H #include /* Definitions */ /* default VME BASE ADDRESS is set here */ #define VME_BASE_ADDR 0xFF0000 #define VME_BASE_A24 0xF00000 #define VME_BASE_A32 0x0D000000 enum vme_mode { DIPSY_A32, DIPSY_A24 } ; enum ask_reply { ASK_OK, ASK_DEFAULT, ASK_YES, ASK_NO } ; /* Prototypes */ #ifdef __cplusplus extern "C" { #endif unsigned short* vme_get_window (const int, const int, const int) ; void vme_end (void) ; unsigned short* ask_vme (const int) ; int ask (const char *, const unsigned int, unsigned int *) ; int askyn (const char *, const int) ; int ask_int (const char *Prompt, const int Default, int *word); int ask_line (const char *Prompt, const char *Default, char *line); int ask_getline ( const char *Default, char *line); #ifdef __cplusplus } #endif #endif