12#error This is a C++ include file and cannot be used from plain C
22#define ngcbSIM_UPDATE_STATUS 0x80000000
27#define ngcbSIM_LOCAL_SPACE (16 * 1024)
32#define ngcbSIM_CFG_SPACE 2048
46 int Read(
int addr,
int *buffer,
int size,
int flags);
49 int Write(
int addr,
const int *buffer,
int size,
int flags);
85 int ReadSens1_(
int *r,
int size,
int flags);
88 int ReadSens2_(
int *r,
int size,
int flags);
91 int ReadSVS_(
int *r,
int size,
int flags);
94 int WriteSens1_(
const int *r,
int size,
int flags);
97 int WriteSens2_(
const int *r,
int size,
int flags);
100 int WriteSVS_(
const int *r,
int size,
int flags);
103 int CRC_(
const int *data,
size_t size);
106 double Rand_(
double min,
double max);
124 int Read(
const int *bufIn,
int *bufOut);
127 int Write(
const int *bufIn,
int *bufOut);
136 void Set_(
int addr,
int value);
187 void Read(
int *buffer,
int size);
190 int Write(
const int *buffer,
int size);
193 int Execute(
int *fifoBuf,
const int *buffer,
int size,
int length = 1);
217 void Verbose(
const char *format, ...)
218 __attribute__ ((format(printf, 2, 3)));
221 void Log(const
char *format, ...)
222 __attribute__ ((format(printf, 2, 3)));
240 int DownLink_(
int hdr);
246 int WriteAddr_(
int addr, const
int *buffer,
int size);
249 int ReadAddr_(
int addr,
int size);
324 struct timeval startTime_;
327 struct timeval breakTime_;
333 double seqBreakTime_;
345 double seqRunTimeExt_;
348 double seqBreakTimeExt_;
411 int adcRegFowlerSize_;
414 int adcRegFowlerCnt_;
417 int adcRegFowlerMode_;
426 void ShutterUpdate_();
432 int shutterRegStatus_;
435 unsigned int shutterRegExp_;
450 struct timeval shutterStart_;
504 int aoRegLevelIPhase_;
507 int aoRegLevelSPhase_;
Definition ngcbSIM.hpp:112
int Write(const int *bufIn, int *bufOut)
Write to memory.
Definition ngcbSCASIM.cpp:155
void Reset()
Reset.
Definition ngcbSCASIM.cpp:62
int Read(const int *bufIn, int *bufOut)
Read from memory.
Definition ngcbSCASIM.cpp:67
ngcbSCASIM(int id)
Constructor with ASIC-ID.
Definition ngcbSCASIM.cpp:34
virtual ~ngcbSCASIM()
Destructor.
Definition ngcbSCASIM.cpp:43
Definition ngcbSERVICE.hpp:35
Definition ngcbSIM.hpp:151
ngcbSIM * mod0
Pointer to first module.
Definition ngcbSIM.hpp:172
int * Fifo()
Pointer to result storage space (= RX-FIFO)
Definition ngcbSIM.cpp:2518
ngcbSIM()
Constructor for master.
Definition ngcbSIM.cpp:32
int Initialized()
Return initialization flag.
Definition ngcbSIM.hpp:175
void Reset()
Reset front-end.
Definition ngcbSIM.cpp:2288
int Execute(int *fifoBuf, const int *buffer, int size, int length=1)
Execute target operation or cut header and pass through.
Definition ngcbSIM.cpp:2366
void SyncStart(ngcbSIM *orig)
Synchronized start.
Definition ngcbSIM.cpp:2523
void Pause()
Pause sequencers.
Definition ngcbSIM.cpp:2583
ngcbSIM * mod[ngcbNUM_LINK]
Next modules on down-links.
Definition ngcbSIM.hpp:169
int verboseLevel
Verbose level.
Definition ngcbSIM.hpp:211
void Timeout(int sconds)
Set timeout.
Definition ngcbSIM.cpp:2293
int * localSpace
Local space.
Definition ngcbSIM.hpp:166
virtual ~ngcbSIM()
Destructor.
Definition ngcbSIM.cpp:47
int * cfgSpace
Configuration space.
Definition ngcbSIM.hpp:163
int Status()
Communication status.
Definition ngcbSIM.cpp:2283
void Verbose(const char *format,...) __attribute__((format(printf
Verbose output.
Definition ngcbSIM.cpp:2616
void SyncTrigger(ngcbSIM *orig)
Synchronized trigger.
Definition ngcbSIM.cpp:2553
void void Log(const char *format,...) __attribute__((format(printf
Log file output.
Definition ngcbSIM.cpp:2652
int logLevel
Log level.
Definition ngcbSIM.hpp:214
ngcbSERVICE * services
System services.
Definition ngcbSIM.hpp:208
void Read(int *buffer, int size)
Read buffer.
Definition ngcbSIM.cpp:2298
int Write(const int *buffer, int size)
Write buffer.
Definition ngcbSIM.cpp:2307
Definition ngcbSIM.hpp:37
ngcbSVSSIM()
Constructor.
Definition ngcbSVSSIM.cpp:33
int Read(int addr, int *buffer, int size, int flags)
Read.
Definition ngcbSVSSIM.cpp:63
int Write(int addr, const int *buffer, int size, int flags)
Write.
Definition ngcbSVSSIM.cpp:83
virtual ~ngcbSVSSIM()
Destructor.
Definition ngcbSVSSIM.cpp:55
#define ngcbSCAIO_FIFO_SIZE
Definition ngcbAddr.h:581
#define ngcbNUM_LINK
Definition ngcbAddr.h:21