Go to the documentation of this file.00001
00002
00003
00004
00005 #ifndef V560LIB_H
00006 #define V560LIB_H
00007
00008 typedef struct {
00009 short volatile *p16_version;
00010 short volatile *p16_manufacturer;
00011 short volatile *p16_fixed_code;
00012 short volatile *p16_scale_status_register;
00013 short volatile *p16_scale_increase;
00014 short volatile *p16_vme_veto_reset;
00015 short volatile *p16_vme_veto_set;
00016 short volatile *p16_scale_clear;
00017 long volatile *p32_counter_15;
00018 long volatile *p32_counter_14;
00019 long volatile *p32_counter_13;
00020 long volatile *p32_counter_12;
00021 long volatile *p32_counter_11;
00022 long volatile *p32_counter_10;
00023 long volatile *p32_counter_9;
00024 long volatile *p32_counter_8;
00025 long volatile *p32_counter_7;
00026 long volatile *p32_counter_6;
00027 long volatile *p32_counter_5;
00028 long volatile *p32_counter_4;
00029 long volatile *p32_counter_3;
00030 long volatile *p32_counter_2;
00031 long volatile *p32_counter_1;
00032 long volatile *p32_counter_0;
00033 short volatile *p16_request_register;
00034 short volatile *p16_clear_vme_interrupt;
00035 short volatile *p16_disable_vme_interrupt;
00036 short volatile *p16_enable_vme_interrupt;
00037 short volatile *p16_interrupt_level;
00038 short volatile *p16_interrupt_vector_register;
00039 } s_v560;
00040
00041 int f_get_v560_ptr(long l_V560_base, s_v560 *ps_v560);
00042
00043 void v560_init(s_v560 *ps_v560);
00044
00045 long v560_read(long *pl_dat, s_v560 *ps_v560);
00046
00047
00048 #endif