LLC2_API
|
concrete implementation, private to this module. More...
Public Member Functions | |
LL_ControlSystemI (const char *_id) | |
virtual | ~LL_ControlSystemI () |
virtual int | addCard (ACQ196 *_acq196) |
add ACQ196 card to system. | |
virtual int | addCard (AO32 *_ao32) |
add AO32 card to system. | |
virtual int | getAI_count (void) const |
virtual int | getAO_count (void) const |
virtual int | getDI_count (void) const |
virtual int | getDO_count (void) const |
virtual int | getStatus_count (void) const |
virtual void | init (int argc, const char *argv[]) |
initialise capture parameters. | |
virtual int | Arm (const short *ao_values_init, const unsigned *do_values_init) |
Arm the capture with initial conditions. | |
virtual int | IO (const short *ao_values, const unsigned *do_values, short *ai_values, unsigned *di_values, unsigned *status) |
Block and return on next sample. | |
virtual int | Stop () |
Stop the capture. | |
virtual void | print () |
print a summary of the system. | |
virtual int | getSamples () const |
returns samples to capture set in init(). | |
virtual int | getOffset (ACQ_Card *card, enum IO io) |
return offset in client vector for <card> with IO type <io>. |
LL_ControlSystemI::LL_ControlSystemI | ( | const char * | _id | ) | [inline] |
LL_ControlSystemI::~LL_ControlSystemI | ( | ) | [virtual] |
Definition at line 888 of file ll2.cpp.
References doPostShotAnalysis().
virtual int LL_ControlSystemI::addCard | ( | ACQ196 * | _acq196 | ) | [inline, virtual] |
virtual int LL_ControlSystemI::addCard | ( | AO32 * | _ao32 | ) | [inline, virtual] |
int LL_ControlSystemI::Arm | ( | const short * | ao_values_init, |
const unsigned * | do_values_init | ||
) | [virtual] |
Arm the capture with initial conditions.
ao_values_init | ensure initial AO condition. |
do_values_init | ensure initial DO condition. |
Implements LL_ControlSystem.
Definition at line 801 of file ll2.cpp.
References acq200_setImask(), appEnterLLC_SYNC_2VAO32(), TestDescription::decimation, EACHBUF, EACHCARD, EACHMBX, EACHSLOT, FOREACHCARD, getVaddr(), LLC_CSR_M_ARM, LLC_MAKE_DECIM, llSetTlatch(), llv2InitDmaDone(), TestDescription::mask_ints, TestDescription::mask_ints_mask, monitor, OFFSET, PRINTF, setupAbortHandler(), setupMonitor(), THIS_CARD, and updateTargetAddr().
int LL_ControlSystemI::getAI_count | ( | void | ) | const [virtual] |
int LL_ControlSystemI::getAO_count | ( | void | ) | const [virtual] |
int LL_ControlSystemI::getDI_count | ( | void | ) | const [virtual] |
int LL_ControlSystemI::getDO_count | ( | void | ) | const [virtual] |
return offset in client vector for <card> with IO type <io>.
Implements LL_ControlSystem.
virtual int LL_ControlSystemI::getSamples | ( | ) | const [inline, virtual] |
returns samples to capture set in init().
Implements LL_ControlSystem.
Definition at line 249 of file ll2.cpp.
References TestDescription::iterations.
int LL_ControlSystemI::getStatus_count | ( | void | ) | const [virtual] |
void LL_ControlSystemI::init | ( | int | argc, |
const char * | argv[] | ||
) | [virtual] |
initialise capture parameters.
Implements LL_ControlSystem.
Definition at line 667 of file ll2.cpp.
References TestDescription::arg, TestDescription::clkpos, TestDescription::decimation, TestDescription::ARG::divisor, HELP, TestDescription::iterations, makeIntMasks(), monitor, setEdge(), suppress_resource_init, TestDescription::tlog, TestDescription::tlog_binfile, TestDescription::trpos, verbose, and VERID.
int LL_ControlSystemI::IO | ( | const short * | ao_values, |
const unsigned * | do_values, | ||
short * | ai_values, | ||
unsigned * | di_values, | ||
unsigned * | status | ||
) | [virtual] |
Block and return on next sample.
Sets outputs before blocking, returns inputs.
Implements LL_ControlSystem.
Definition at line 842 of file ll2.cpp.
References EACHCARD, FOREACHCARD, TestDescription::iter, updateTstats, and waitDmaDone.
void LL_ControlSystemI::print | ( | ) | [virtual] |
print a summary of the system.
xml output could be used to auto initialise application buffers
Implements LL_ControlSystem.
int LL_ControlSystemI::Stop | ( | ) | [virtual] |
Stop the capture.
Implements LL_ControlSystem.
Definition at line 862 of file ll2.cpp.
References acq200_setImask(), EACHMBX, EACHSLOT, FOREACHCARD, leaveLLC(), TestDescription::mask_ints, TestDescription::mask_ints_mask, PRINTF, and TestDescription::unmask_ints_mask.