// 13.4.2007 napaka v CAENV462_START1, popravil Rok Pestotnik
#define CAENV462_CSR 0x00
#define CAENV462_MSB0 0x02
#define CAENV462_LSB0 0x04
#define CAENV462_MSB1 0x06
#define CAENV462_LSB1 0x08
#define CAENV462_FIX 0xFA
#define CAENV462_MMT 0xFC
#define CAENV462_VSR 0xFE
#define FIX_CODE 0xFAF5
#define CAENV462_MMT_VALUE 0x080A
#define CAENV462_START0 0x200
#define CAENV462_START1 0x400
#define CAENV462_STATUS 0xF800
#define VERSION(x) (((x)>>12) & 0xf)
#define SERIAL(x) ((x) & 0xfff)
#define MANUFACTURER(x) (((x)>>10) & 0x3f)
#define MODULE_TYPE(x) ((x) & 0x3ff)
#define VME_D8(x) ( *((unsigned char *) (x)))
#define VME_D16(x) ( *((unsigned short *) (x)))
#define VME_D32(x) ( *((unsigned long *) (x)))