AlcapDAQ
1
|
Go to the source code of this file.
Macros | |
#define | DL401_MAXMODULES 16 |
#define | DL401_NCHAN 4 /* number of inputs per module */ |
#define | DL401_PEDCHANBITS 6 |
#define | DL401_PEDCHANMASK 0x3F /* pedestal mask (one chan) */ |
#define | DL401_PEDBITMASK 0x00800000 /* pedestal bit mask */ |
#define | DL401_PEDBITS 24 |
#define | DL401_PEDMASK 0x00FFFFFF /* pedestal mask */ |
#define | DL401_CNTMASK 0x03FF |
#define | DL401_CNTMAX 0x0400 |
#define | DL401_ICNV 0x02 /* Internal CoNVert (D0) (R) */ |
#define | DL401_CLIF 0x02 /* Clear Interrupt Flag (W) */ |
#define | DL401_WDAC 0x12 /* Write serial DAC data (W) */ |
#define | DL401_MRST 0x22 /* Module ReSeT (W) */ |
#define | DL401_BASE 0x52 /* load BASE address (0x00) (W) */ |
#define | DL401_MASK 0x62 /* MASK word (see below) (W) */ |
#define | DL401_MODE 0x72 /* MODE word (see below) (R/W) */ |
#define | DL401_RMAD 0x90 /* Read Memory ADdres counter (R) */ |
#define | DL401_SMODSIZ 0x000f /* load SubMODule SIZe (==0) */ |
#define | DL401_ADDRMOD 0x3f00 /* load ADDress MODifier */ |
#define | DL401_ADDRMSH 8 /* ADDress Modifier SHift */ |
#define | VME_AM_EXT_USR_DATA 0x09 |
#define | DL401_AM_EXT_MODE (VME_AM_EXT_USR_DATA << DL401_ADDRMSH) |
#define | DL401_AM_STD_MODE (VME_AM_STD_USR_DATA << DL401_ADDRMSH) |
#define | DL401_LWIOENA 0x8000 /* Long Word I/O ENAble */ |
#define | DL401_IRQVEC 0x00ff /* Interrupt VECtor (R/W) */ |
#define | DL401_IRQPRI 0x0700 /* Interrupt PRIority (R/W) */ |
#define | DL401_IRQMOD 0x0800 /* Interrupt MODe (R/W) */ |
#define | DL401_DEFMODE 0x0000 /* DEFault MODe (W) */ |
#define | DL401_INTMODE 0x1000 /* INTernal MODe (W) */ |
#define | DL401_EXTMODE 0xefff /* EXTernal MODe (W) */ |
#define | DL401_INTGATE 0x2000 /* internal gate (W) */ |
#define | DL401_EXTGATE 0xdfff /* external gate (W) */ |
#define | DL401_DACWDIS 0x4000 /* DAC Write DISable (W) */ |
#define | DL401_DACWENA 0xbfff /* DAC Write ENAble (W) */ |
#define | DL401_AUTOMODE 0x8000 /* AUTOstop MODE enable (W) */ |
#define | DL401_CONTMODE 0x7fff /* CONTinuous MODE enable (W) */ |
#define | DL401_ASTOPACT 0x1000 /* :0 auto stop active */ |
#define | DL401_INTREQ 0x2000 /* :1 internal interrupt request*/ |
#define | DL401_RDAC 0x4000 /* Read serial DAQ output */ |
#define | DL403_MAXMODULES 4 |
#define | DL403_CYCLESNUM 3 |
#define | DL403_CYCLE1 0x02 |
#define | DL403_CYCLE2 0x04 |
#define | DL403_CYCLE3 0x06 |
#define | DL403_RATE 0x08 |
#define | DL403_START 0x0a |
#define | DL403_STOP 0x0c |
#define | DL403_MODE 0x72 |
#define | DL403_RESET 0x22 |
#define | DL403_EXTERN 0x00 |
#define | DL403_SELECTED 0x01 |
#define | DL403_50MHZ 0x02 |
#define | DL403_100MHZ 0x03 |
#define | DL403_ASYNC 0x1000 |
#define | DL403_CONT 0x2000 |
#define | DL403_STEADY 0x4000 |
#define | DL403_RUN 0x1000 |
#define | DL403_RUNSHFT 12 |
#define | DL403_GO 0xffff /* used for start/stop commands */ |
Functions | |
INT | dl401_init (struct dl401 *d) |
void | dl401_teardown () |
INLINE void | dl401_setup (struct dl401 *d, u_short bs, u_short am, u_short md) |
INLINE int | dl401_setPedestals (struct dl401 *d, u_short p[], int np) |
INLINE u_long | dl401_getPedestals (struct dl401 *d) |
INLINE u_short | dl401_getCounts (struct dl401 *d) |
INLINE u_short | dl401_getMode (struct dl401 *d) |
INLINE u_short | dl401_getMask (struct dl401 *d) |
INLINE void | dl401_clear (struct dl401 *d) |
INLINE void | dl401_reset (struct dl401 *d) |
INLINE void | dl401_convert (struct dl401 *d) |
INLINE int | dl401_finished (struct dl401 *d) |
INLINE int | dl401_read (struct dl401 *d, u_int *data) |
INLINE int | dl401_dmaread (struct dl401 *d, u_int *data) |
INT | dl403_init (struct dl403 *d) |
void | dl403_setClockRate (struct dl403 *d, u_short clk1, u_short clk2, u_short clk3) |
void | dl403_setClockCycle (struct dl403 *d, u_short cyc1, u_short cyc2, u_short cyc3) |
INLINE void | dl403_asyncMode (struct dl403 *d) |
INLINE void | dl403_contMode (struct dl403 *d) |
INLINE void | dl403_steadyMode (struct dl403 *d) |
INLINE short | dl403_runBit (struct dl403 *d) |
INLINE void | dl403_start (struct dl403 *d) |
INLINE void | dl403_stop (struct dl403 *d) |
INLINE void | dl403_reset (struct dl403 *d) |
INLINE short | dl403_running (struct dl403 *d) |
#define DL401_AM_EXT_MODE (VME_AM_EXT_USR_DATA << DL401_ADDRMSH) |
Definition at line 77 of file dl40x.h.
Referenced by dl401_bor1().
#define DL401_AM_STD_MODE (VME_AM_STD_USR_DATA << DL401_ADDRMSH) |
#define DL401_BASE 0x52 /* load BASE address (0x00) (W) */ |
Definition at line 66 of file dl40x.h.
Referenced by dl401_bor1().
#define DL401_CLIF 0x02 /* Clear Interrupt Flag (W) */ |
Definition at line 63 of file dl40x.h.
Referenced by dl401_clear().
#define DL401_CNTMASK 0x03FF |
Definition at line 58 of file dl40x.h.
Referenced by dl401_getCounts().
#define DL401_CNTMAX 0x0400 |
Definition at line 59 of file dl40x.h.
Referenced by dl401_read(), and dl40x_read().
#define DL401_CONTMODE 0x7fff /* CONTinuous MODE enable (W) */ |
#define DL401_DACWDIS 0x4000 /* DAC Write DISable (W) */ |
Definition at line 91 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL401_DACWENA 0xbfff /* DAC Write ENAble (W) */ |
Definition at line 92 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL401_DEFMODE 0x0000 /* DEFault MODe (W) */ |
Definition at line 86 of file dl40x.h.
Referenced by dl401_bor1(), and dl401_setPedestals().
#define DL401_ICNV 0x02 /* Internal CoNVert (D0) (R) */ |
Definition at line 62 of file dl40x.h.
Referenced by dl401_convert().
#define DL401_INTREQ 0x2000 /* :1 internal interrupt request*/ |
Definition at line 97 of file dl40x.h.
Referenced by dl401_finished().
#define DL401_LWIOENA 0x8000 /* Long Word I/O ENAble */ |
Definition at line 79 of file dl40x.h.
Referenced by dl401_bor1().
#define DL401_MASK 0x62 /* MASK word (see below) (W) */ |
Definition at line 67 of file dl40x.h.
Referenced by dl401_bor1().
#define DL401_MAXMODULES 16 |
Definition at line 50 of file dl40x.h.
Referenced by dl40x_bor(), dl40x_eor(), and dl40x_read().
#define DL401_MODE 0x72 /* MODE word (see below) (R/W) */ |
Definition at line 68 of file dl40x.h.
Referenced by dl401_bor1(), dl401_finished(), dl401_getMode(), and dl401_setPedestals().
#define DL401_MRST 0x22 /* Module ReSeT (W) */ |
Definition at line 65 of file dl40x.h.
Referenced by dl401_reset().
#define DL401_NCHAN 4 /* number of inputs per module */ |
Definition at line 52 of file dl40x.h.
Referenced by dl401_bor1(), and dl401_setPedestals().
#define DL401_PEDBITS 24 |
Definition at line 56 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL401_PEDCHANBITS 6 |
Definition at line 53 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL401_PEDCHANMASK 0x3F /* pedestal mask (one chan) */ |
Definition at line 54 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL401_PEDMASK 0x00FFFFFF /* pedestal mask */ |
Definition at line 57 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL401_RMAD 0x90 /* Read Memory ADdres counter (R) */ |
Definition at line 69 of file dl40x.h.
Referenced by dl401_getCounts().
#define DL401_WDAC 0x12 /* Write serial DAC data (W) */ |
Definition at line 64 of file dl40x.h.
Referenced by dl401_setPedestals().
#define DL403_100MHZ 0x03 |
Definition at line 120 of file dl40x.h.
Referenced by dl403_init().
#define DL403_50MHZ 0x02 |
Definition at line 119 of file dl40x.h.
Referenced by dl403_init().
#define DL403_ASYNC 0x1000 |
Definition at line 123 of file dl40x.h.
Referenced by dl403_asyncMode().
#define DL403_CONT 0x2000 |
Definition at line 124 of file dl40x.h.
Referenced by dl403_contMode().
#define DL403_CYCLE1 0x02 |
Definition at line 107 of file dl40x.h.
Referenced by dl403_setClockCycle().
#define DL403_CYCLE2 0x04 |
Definition at line 108 of file dl40x.h.
Referenced by dl403_setClockCycle().
#define DL403_CYCLE3 0x06 |
Definition at line 109 of file dl40x.h.
Referenced by dl403_setClockCycle().
#define DL403_GO 0xffff /* used for start/stop commands */ |
Definition at line 130 of file dl40x.h.
Referenced by dl403_reset(), dl403_start(), and dl403_stop().
#define DL403_MODE 0x72 |
Definition at line 113 of file dl40x.h.
Referenced by dl403_asyncMode(), dl403_contMode(), dl403_getMode(), dl403_runBit(), dl403_running(), and dl403_steadyMode().
#define DL403_RATE 0x08 |
Definition at line 110 of file dl40x.h.
Referenced by dl403_setClockRate().
#define DL403_RESET 0x22 |
Definition at line 114 of file dl40x.h.
Referenced by dl403_reset().
#define DL403_RUN 0x1000 |
Definition at line 127 of file dl40x.h.
Referenced by dl403_runBit(), and dl403_running().
#define DL403_SELECTED 0x01 |
Definition at line 118 of file dl40x.h.
Referenced by dl403_init().
#define DL403_START 0x0a |
Definition at line 111 of file dl40x.h.
Referenced by dl403_start().
#define DL403_STEADY 0x4000 |
Definition at line 125 of file dl40x.h.
Referenced by dl403_steadyMode().
#define DL403_STOP 0x0c |
Definition at line 112 of file dl40x.h.
Referenced by dl403_stop().
INLINE void dl401_clear | ( | struct dl401 * | d) |
INLINE void dl401_convert | ( | struct dl401 * | d) |
INLINE int dl401_dmaread | ( | struct dl401 * | d, |
u_int * | data | ||
) |
INLINE u_short dl401_getMask | ( | struct dl401 * | d) |
INLINE u_short dl401_getMode | ( | struct dl401 * | d) |
INLINE u_long dl401_getPedestals | ( | struct dl401 * | d) |
INT dl401_init | ( | struct dl401 * | d) |
INLINE void dl401_reset | ( | struct dl401 * | d) |
INLINE int dl401_setPedestals | ( | struct dl401 * | d, |
u_short | p[], | ||
int | np | ||
) |
INLINE void dl401_setup | ( | struct dl401 * | d, |
u_short | bs, | ||
u_short | am, | ||
u_short | md | ||
) |
void dl401_teardown | ( | ) |
INLINE void dl403_asyncMode | ( | struct dl403 * | d) |
INLINE void dl403_contMode | ( | struct dl403 * | d) |
INLINE void dl403_reset | ( | struct dl403 * | d) |
void dl403_setClockCycle | ( | struct dl403 * | d, |
u_short | cyc1, | ||
u_short | cyc2, | ||
u_short | cyc3 | ||
) |
void dl403_setClockRate | ( | struct dl403 * | d, |
u_short | clk1, | ||
u_short | clk2, | ||
u_short | clk3 | ||
) |
INLINE void dl403_start | ( | struct dl403 * | d) |
INLINE void dl403_steadyMode | ( | struct dl403 * | d) |
INLINE void dl403_stop | ( | struct dl403 * | d) |