AlcapDAQ
1
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include "midas.h"
#include "crate.h"
#include "vme.h"
#include "dl40x.h"
#include "diag.h"
#include "odb_wrapper.h"
Go to the source code of this file.
Data Structures | |
struct | dl401 |
struct | dl403 |
Functions | |
INT | dl40x_bor () |
INT | dl40x_eor () |
INT | dl40x_read (char *pevent) |
INT | dl401_bor1 (struct dl401 *d) |
INLINE int | dl401_setPedestals (struct dl401 *d, u_short p[], int np) |
INLINE u_short | dl401_getCounts (struct dl401 *d) |
INLINE u_short | dl401_getMode (struct dl401 *d) |
INLINE void | dl401_reset (struct dl401 *d) |
INLINE void | dl401_clear (struct dl401 *d) |
INLINE void | dl401_convert (struct dl401 *d) |
INLINE int | dl401_finished (struct dl401 *d) |
int | dl401_read (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 c1, u_short c2, u_short c3) |
INLINE short | dl403_getMode (struct dl403 *d) |
INLINE void | dl403_asyncMode (struct dl403 *d) |
INLINE void | dl403_contMode (struct dl403 *d) |
INLINE void | dl403_steadyMode (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_runBit (struct dl403 *d) |
INLINE short | dl403_running (struct dl403 *d) |
Variables | |
struct readout_module | dl40x_module |
static struct dl401 | DL401 [DL401_MAXMODULES] |
static struct dl403 | clk |
INT dl401_bor1 | ( | struct dl401 * | d) |
INLINE void dl401_clear | ( | struct dl401 * | d) |
Definition at line 280 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, DL401_CLIF, and vme_write_d16().
INLINE void dl401_convert | ( | struct dl401 * | d) |
Definition at line 286 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, DL401_ICNV, and vme_read_d16().
INLINE int dl401_finished | ( | struct dl401 * | d) |
Definition at line 292 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, DL401_INTREQ, DL401_MODE, and vme_read_d16().
INLINE u_short dl401_getCounts | ( | struct dl401 * | d) |
Definition at line 261 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, DL401_CNTMASK, DL401_RMAD, and vme_read_d16().
INLINE u_short dl401_getMode | ( | struct dl401 * | d) |
Definition at line 268 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, DL401_MODE, and vme_read_d16().
int dl401_read | ( | struct dl401 * | d, |
u_int * | data | ||
) |
Definition at line 300 of file dl40x.cpp.
References dl401::a32_base, dl401::a32_handle, diag_print(), DL401_CNTMAX, dl401_getCounts(), i, and vme_read_d32().
INLINE void dl401_reset | ( | struct dl401 * | d) |
Definition at line 274 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, DL401_MRST, and vme_write_d16().
INLINE int dl401_setPedestals | ( | struct dl401 * | d, |
u_short | p[], | ||
int | np | ||
) |
Definition at line 226 of file dl40x.cpp.
References dl401::a16_base, dl401::a16_handle, diag_print(), DL401_DACWDIS, DL401_DACWENA, DL401_DEFMODE, DL401_MODE, DL401_NCHAN, DL401_PEDBITS, DL401_PEDCHANBITS, DL401_PEDCHANMASK, DL401_PEDMASK, DL401_WDAC, i, SUCCESS, and vme_write_d16().
INLINE void dl403_asyncMode | ( | struct dl403 * | d) |
Definition at line 436 of file dl40x.cpp.
References dl403::a16_base, DL403_ASYNC, DL403_MODE, dl403::vme_handle, and vme_write_d16().
INLINE void dl403_contMode | ( | struct dl403 * | d) |
Definition at line 442 of file dl40x.cpp.
References dl403::a16_base, DL403_CONT, DL403_MODE, dl403::vme_handle, and vme_write_d16().
INLINE short dl403_getMode | ( | struct dl403 * | d) |
Definition at line 430 of file dl40x.cpp.
References dl403::a16_base, DL403_MODE, dl403::vme_handle, and vme_read_d16().
INT dl403_init | ( | struct dl403 * | d) |
Definition at line 352 of file dl40x.cpp.
References dl403::a16_base, crate_number, diag_print(), DL403_100MHZ, DL403_50MHZ, DL403_SELECTED, dl403_setClockCycle(), dl403_setClockRate(), dl403_start(), dl403_steadyMode(), dl403::enabled, FALSE, frontend_name, odb_find_key(), odb_get_int(), odb_get_word(), SUCCESS, TRUE, dl403::vme_handle, vme_open(), VMEMAP_ASPACE_A16, VMEMAP_DWIDTH_32, VMEMAP_PRGDATAAM_DATA, and VMEMAP_SUPUSERAM_SUPER.
INLINE void dl403_reset | ( | struct dl403 * | d) |
Definition at line 466 of file dl40x.cpp.
References dl403::a16_base, DL403_GO, DL403_RESET, dl403::vme_handle, and vme_write_d16().
INLINE short dl403_runBit | ( | struct dl403 * | d) |
Definition at line 472 of file dl40x.cpp.
References dl403::a16_base, DL403_MODE, DL403_RUN, dl403::vme_handle, and vme_read_d16().
INLINE short dl403_running | ( | struct dl403 * | d) |
Definition at line 479 of file dl40x.cpp.
References dl403::a16_base, DL403_MODE, DL403_RUN, dl403::vme_handle, and vme_read_d16().
void dl403_setClockCycle | ( | struct dl403 * | d, |
u_short | c1, | ||
u_short | c2, | ||
u_short | c3 | ||
) |
Definition at line 417 of file dl40x.cpp.
References dl403::a16_base, diag_print(), DL403_CYCLE1, DL403_CYCLE2, DL403_CYCLE3, dl403::vme_handle, and vme_write_d16().
void dl403_setClockRate | ( | struct dl403 * | d, |
u_short | clk1, | ||
u_short | clk2, | ||
u_short | clk3 | ||
) |
Definition at line 407 of file dl40x.cpp.
References dl403::a16_base, diag_print(), DL403_RATE, dl403::vme_handle, and vme_write_d16().
INLINE void dl403_start | ( | struct dl403 * | d) |
Definition at line 454 of file dl40x.cpp.
References dl403::a16_base, DL403_GO, DL403_START, dl403::vme_handle, and vme_write_d16().
INLINE void dl403_steadyMode | ( | struct dl403 * | d) |
Definition at line 448 of file dl40x.cpp.
References dl403::a16_base, DL403_MODE, DL403_STEADY, dl403::vme_handle, and vme_write_d16().
INLINE void dl403_stop | ( | struct dl403 * | d) |
Definition at line 460 of file dl40x.cpp.
References dl403::a16_base, DL403_GO, DL403_STOP, dl403::vme_handle, and vme_write_d16().
INT dl40x_bor | ( | ) |
INT dl40x_eor | ( | ) |
INT dl40x_read | ( | char * | pevent) |
|
static |
|
static |
struct readout_module dl40x_module |