Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
190 | f9daq | 1 | // 13.4.2007 napaka v CAENV462_START1, popravil Rok Pestotnik |
2 | #define CAENV462_CSR 0x00 |
||
3 | #define CAENV462_MSB0 0x02 |
||
4 | #define CAENV462_LSB0 0x04 |
||
5 | #define CAENV462_MSB1 0x06 |
||
6 | #define CAENV462_LSB1 0x08 |
||
7 | #define CAENV462_FIX 0xFA |
||
8 | #define CAENV462_MMT 0xFC |
||
9 | #define CAENV462_VSR 0xFE |
||
10 | |||
11 | #define FIX_CODE 0xFAF5 |
||
12 | #define CAENV462_MMT_VALUE 0x080A |
||
13 | #define CAENV462_START0 0x200 |
||
14 | #define CAENV462_START1 0x400 |
||
15 | #define CAENV462_STATUS 0xF800 |
||
16 | |||
17 | #define VERSION(x) (((x)>>12) & 0xf) |
||
18 | #define SERIAL(x) ((x) & 0xfff) |
||
19 | #define MANUFACTURER(x) (((x)>>10) & 0x3f) |
||
20 | #define MODULE_TYPE(x) ((x) & 0x3ff) |
||
21 | |||
22 | #define VME_D8(x) ( *((unsigned char *) (x))) |
||
23 | #define VME_D16(x) ( *((unsigned short *) (x))) |
||
24 | #define VME_D32(x) ( *((unsigned long *) (x))) |