ICP  1
Functions | Variables
daeset.cpp File Reference
#include <iostream>
#include <sstream>
#include <time.h>
#include "isisdae.h"

Go to the source code of this file.

Functions

void __stdcall DAE_DEVICE (short &tempchan, int &simulate)
 
void __stdcall DAESET (short &zaachan, int crat[], int daep[], int dat1[], int modn[], int mpos[], int &ndet, int &nper, int &ntrg, int pmap[], int &nfpp, int &pre1, int spec[], int tcb1[], int timr[], int ntcftr[], int nosftr[], int &vaxmax, int &status, int &daebegerror, int &logstatus, int &delay, int &synch, int vetoes[], int &cper, int &save_permax, int save_tpoffset[], int &datamode, int &tables_only)
 
void __stdcall DAEPAUSE (short &zaachan, isisU32_t &igfc, isisU32_t &irfc, int &status)
 
void __stdcall DAERESUME (short &zaachan, int &cper, int &save_permax, int &save_tpoffset, int &status)
 
void __stdcall DAEEND (isisU32_t dat1[], int daep[], int ntcftr[], int nosftr[], int &nper, int &ntrg, short &zaachan, isisU32_t &igfc, isisU32_t &irfc, int &status)
 
int __stdcall RIO (isis32_t &bus_addr, isisU16_t *word, isis16_t &device)
 
int __stdcall WIO (isis32_t &bus_addr, isisU16_t *word, isis16_t &device)
 
int __stdcall RIOD (isis32_t &bus_addr, isisU16_t *word, isis32_t &nwrds, isis16_t &device)
 
int __stdcall WIOD (isis32_t &bus_addr, isisU16_t *word, isis32_t &nwrds, isis16_t &device)
 
int rio_c (long bus_addr, isisU16_t *word, short device)
 
int read_crpt_c (int **start, int &section, int &size)
 
int open_dae_cds (const char *name)
 
int __stdcall WMEM (isis32_t &bus_addr, isisU16_t *word, isisU16_t &device)
 
int __stdcall RMEM (isis32_t &bus_addr, isisU16_t *word, isisU16_t &device)
 
int __stdcall WMEMD (isis32_t &bus_addr, isisU16_t *word, isis32_t &nwrds, isisU16_t &device)
 
int __stdcall RMEMD (isis32_t &bus_addr, isisU16_t *word, isis32_t &nwrds, isisU16_t &device)
 
int __stdcall RMEMVI (isis32_t &bus_addr, isisU32_t *buffer, isisU32_t &length, isis16_t &device, isis32_t &wrd_len)
 
int __stdcall DAECP (int code)
 
int read_crpt_array_c (int start, int length, int section[])
 
int set_dae_streams (std::ostringstream *pOut, std::ostringstream *pInf, std::ostringstream *pWarn, std::ostringstream *pErr, std::ostringstream *pDbg)
 
int __stdcall RIOD (isis32_t &bus_addr, isisU16_t *word, isisU32_t &nwrds, isis16_t &device)
 

Variables

static ISISDAEdae = 0
 
static bool simulate_vme = (getenv("SIMULATE_VME") != 0 ? true : false)
 
static std::ostringstream * dae_pOut
 
static std::ostringstream * dae_pInf
 
static std::ostringstream * dae_pWarn
 
static std::ostringstream * dae_pErr
 
static std::ostringstream * dae_pDbg
 

Function Documentation

void __stdcall DAE_DEVICE ( short &  tempchan,
int &  simulate 
)
int __stdcall DAECP ( int  code)

Definition at line 439 of file daeset.cpp.

References dae_pErr.

void __stdcall DAEEND ( isisU32_t  dat1[],
int  daep[],
int  ntcftr[],
int  nosftr[],
int &  nper,
int &  ntrg,
short &  zaachan,
isisU32_t igfc,
isisU32_t irfc,
int &  status 
)
void __stdcall DAEPAUSE ( short &  zaachan,
isisU32_t igfc,
isisU32_t irfc,
int &  status 
)
void __stdcall DAERESUME ( short &  zaachan,
int &  cper,
int &  save_permax,
int &  save_tpoffset,
int &  status 
)

Definition at line 379 of file daeset.cpp.

References ISISDAE::changePeriod(), dae_pInf, and ISISDAE::startRun().

void __stdcall DAESET ( short &  zaachan,
int  crat[],
int  daep[],
int  dat1[],
int  modn[],
int  mpos[],
int &  ndet,
int &  nper,
int &  ntrg,
int  pmap[],
int &  nfpp,
int &  pre1,
int  spec[],
int  tcb1[],
int  timr[],
int  ntcftr[],
int  nosftr[],
int &  vaxmax,
int &  status,
int &  daebegerror,
int &  logstatus,
int &  delay,
int &  synch,
int  vetoes[],
int &  cper,
int &  save_permax,
int  save_tpoffset[],
int &  datamode,
int &  tables_only 
)
int open_dae_cds ( const char *  name)

Definition at line 72 of file daeset.cpp.

References dae_pDbg, dae_pErr, dae_pInf, dae_pOut, dae_pWarn, ISISDAE::open(), and simulate_vme.

int read_crpt_array_c ( int  start,
int  length,
int  section[] 
)

Definition at line 445 of file daeset.cpp.

References dae_pErr.

int read_crpt_c ( int **  start,
int &  section,
int &  size 
)

Definition at line 66 of file daeset.cpp.

References dae_pErr.

int __stdcall RIO ( isis32_t bus_addr,
isisU16_t word,
isis16_t device 
)
int rio_c ( long  bus_addr,
isisU16_t word,
short  device 
)

Definition at line 61 of file daeset.cpp.

References RIO().

int __stdcall RIOD ( isis32_t bus_addr,
isisU16_t word,
isis32_t nwrds,
isis16_t device 
)
int __stdcall RIOD ( isis32_t bus_addr,
isisU16_t word,
isisU32_t nwrds,
isis16_t device 
)

Definition at line 191 of file daeset.cpp.

References dae_pErr.

int __stdcall RMEM ( isis32_t bus_addr,
isisU16_t word,
isisU16_t device 
)

Definition at line 101 of file daeset.cpp.

References ISISDAE::readHistogramMemory().

int __stdcall RMEMD ( isis32_t bus_addr,
isisU16_t word,
isis32_t nwrds,
isisU16_t device 
)

Definition at line 109 of file daeset.cpp.

References dae_pErr, and ISISDAE::readHistogramMemory().

int __stdcall RMEMVI ( isis32_t bus_addr,
isisU32_t buffer,
isisU32_t length,
isis16_t device,
isis32_t wrd_len 
)

Definition at line 123 of file daeset.cpp.

References dae_pErr, and ISISDAE::readHistogramMemory().

int set_dae_streams ( std::ostringstream *  pOut,
std::ostringstream *  pInf,
std::ostringstream *  pWarn,
std::ostringstream *  pErr,
std::ostringstream *  pDbg 
)
int __stdcall WIO ( isis32_t bus_addr,
isisU16_t word,
isis16_t device 
)

Definition at line 49 of file daeset.cpp.

References dae_pErr.

int __stdcall WIOD ( isis32_t bus_addr,
isisU16_t word,
isis32_t nwrds,
isis16_t device 
)

Definition at line 55 of file daeset.cpp.

References dae_pErr.

int __stdcall WMEM ( isis32_t bus_addr,
isisU16_t word,
isisU16_t device 
)

Definition at line 89 of file daeset.cpp.

References dae_pErr.

int __stdcall WMEMD ( isis32_t bus_addr,
isisU16_t word,
isis32_t nwrds,
isisU16_t device 
)

Definition at line 95 of file daeset.cpp.

References dae_pErr.

Variable Documentation

ISISDAE* dae = 0
static
std::ostringstream * dae_pDbg
static

Definition at line 9 of file daeset.cpp.

Referenced by open_dae_cds().

std::ostringstream * dae_pErr
static
std::ostringstream * dae_pInf
static

Definition at line 9 of file daeset.cpp.

Referenced by DAEEND(), DAEPAUSE(), DAERESUME(), DAESET(), and open_dae_cds().

std::ostringstream* dae_pOut
static

Definition at line 9 of file daeset.cpp.

Referenced by open_dae_cds().

std::ostringstream * dae_pWarn
static

Definition at line 9 of file daeset.cpp.

Referenced by DAESET(), and open_dae_cds().

bool simulate_vme = (getenv("SIMULATE_VME") != 0 ? true : false)
static

Definition at line 8 of file daeset.cpp.

Referenced by open_dae_cds().