13#error This is a C++ include file and cannot be used from plain C
23#define ngcbSIM_UPDATE_STATUS 0x80000000
28#define ngcbSIM_LOCAL_SPACE (16 * 1024)
33#define ngcbSIM_CFG_SPACE 2048
47 int Read(
int addr,
int *buffer,
int size,
int flags);
50 int Write(
int addr,
const int *buffer,
int size,
int flags);
86 int ReadSens1_(
int *r,
int size,
int flags);
89 int ReadSens2_(
int *r,
int size,
int flags);
92 int ReadSVS_(
int *r,
int size,
int flags);
95 int WriteSens1_(
const int *r,
int size,
int flags);
98 int WriteSens2_(
const int *r,
int size,
int flags);
101 int WriteSVS_(
const int *r,
int size,
int flags);
104 int CRC_(
const int *data,
size_t size);
107 double Rand_(
double min,
double max);
125 int Read(
const int *bufIn,
int *bufOut);
128 int Write(
const int *bufIn,
int *bufOut);
137 void Set_(
int addr,
int value);
188 void Read(
int *buffer,
int size);
191 int Write(
const int *buffer,
int size);
194 int Execute(
int *fifoBuf,
const int *buffer,
int size,
int length = 1);
218 void Verbose(
const char *format, ...)
219 __attribute__ ((format(printf, 2, 3)));
222 void Log(const
char *format, ...)
223 __attribute__ ((format(printf, 2, 3)));
241 int DownLink_(
int hdr);
247 int WriteAddr_(
int addr, const
int *buffer,
int size);
250 int ReadAddr_(
int addr,
int size);
325 struct timeval startTime_;
328 struct timeval breakTime_;
334 double seqBreakTime_;
346 double seqRunTimeExt_;
349 double seqBreakTimeExt_;
412 int adcRegFowlerSize_;
415 int adcRegFowlerCnt_;
418 int adcRegFowlerMode_;
427 void ShutterUpdate_();
433 int shutterRegStatus_;
436 unsigned int shutterRegExp_;
451 struct timeval shutterStart_;
505 int aoRegLevelIPhase_;
508 int aoRegLevelSPhase_;
Definition ngcbSIM.hpp:113
int Write(const int *bufIn, int *bufOut)
Write to memory.
Definition ngcbSCASIM.cpp:156
void Reset()
Reset.
Definition ngcbSCASIM.cpp:63
int Read(const int *bufIn, int *bufOut)
Read from memory.
Definition ngcbSCASIM.cpp:68
ngcbSCASIM(int id)
Constructor with ASIC-ID.
Definition ngcbSCASIM.cpp:35
virtual ~ngcbSCASIM()
Destructor.
Definition ngcbSCASIM.cpp:44
Definition ngcbSERVICE.hpp:36
Definition ngcbSIM.hpp:152
ngcbSIM * mod0
Pointer to first module.
Definition ngcbSIM.hpp:173
int * Fifo()
Pointer to result storage space (= RX-FIFO)
Definition ngcbSIM.cpp:2519
ngcbSIM()
Constructor for master.
Definition ngcbSIM.cpp:33
int Initialized()
Return initialization flag.
Definition ngcbSIM.hpp:176
void Reset()
Reset front-end.
Definition ngcbSIM.cpp:2289
int Execute(int *fifoBuf, const int *buffer, int size, int length=1)
Execute target operation or cut header and pass through.
Definition ngcbSIM.cpp:2367
void SyncStart(ngcbSIM *orig)
Synchronized start.
Definition ngcbSIM.cpp:2524
void Pause()
Pause sequencers.
Definition ngcbSIM.cpp:2584
ngcbSIM * mod[ngcbNUM_LINK]
Next modules on down-links.
Definition ngcbSIM.hpp:170
int verboseLevel
Verbose level.
Definition ngcbSIM.hpp:212
void Timeout(int sconds)
Set timeout.
Definition ngcbSIM.cpp:2294
int * localSpace
Local space.
Definition ngcbSIM.hpp:167
virtual ~ngcbSIM()
Destructor.
Definition ngcbSIM.cpp:48
int * cfgSpace
Configuration space.
Definition ngcbSIM.hpp:164
int Status()
Communication status.
Definition ngcbSIM.cpp:2284
void Verbose(const char *format,...) __attribute__((format(printf
Verbose output.
Definition ngcbSIM.cpp:2617
void SyncTrigger(ngcbSIM *orig)
Synchronized trigger.
Definition ngcbSIM.cpp:2554
void void Log(const char *format,...) __attribute__((format(printf
Log file output.
Definition ngcbSIM.cpp:2653
int logLevel
Log level.
Definition ngcbSIM.hpp:215
ngcbSERVICE * services
System services.
Definition ngcbSIM.hpp:209
void Read(int *buffer, int size)
Read buffer.
Definition ngcbSIM.cpp:2299
int Write(const int *buffer, int size)
Write buffer.
Definition ngcbSIM.cpp:2308
Definition ngcbSIM.hpp:38
ngcbSVSSIM()
Constructor.
Definition ngcbSVSSIM.cpp:34
int Read(int addr, int *buffer, int size, int flags)
Read.
Definition ngcbSVSSIM.cpp:64
int Write(int addr, const int *buffer, int size, int flags)
Write.
Definition ngcbSVSSIM.cpp:84
virtual ~ngcbSVSSIM()
Destructor.
Definition ngcbSVSSIM.cpp:56
#define ngcbSCAIO_FIFO_SIZE
Definition ngcbAddr.h:582
#define ngcbNUM_LINK
Definition ngcbAddr.h:22