LLC2_API
|
C wrapper for LOWLATENCY2 API. More...
Go to the source code of this file.
Classes | |
class | DynamicSystem |
singleton More... | |
Defines | |
#define | RETOK(fun) do { return (fun) == 0? OK: ERR; } while (0) |
Functions | |
STATUS_OK | RtSetup (const char *config_file, int argc, const char *argv[]) |
instantiate system | |
STATUS_OK | RtArm (const short *ao_values, const unsigned *do_values) |
arm the capture | |
STATUS_OK | RtIO (const short *ao_values, const unsigned *do_values, short *ai_values, unsigned *di_values, unsigned *status_values) |
set next outputs, wait for and return next sample | |
STATUS_OK | RtDone (void) |
stop and cleanup. |
C wrapper for LOWLATENCY2 API.
Definition in file ll2-api.cpp.
#define RETOK | ( | fun | ) | do { return (fun) == 0? OK: ERR; } while (0) |
Definition at line 34 of file ll2-api.cpp.
STATUS_OK RtArm | ( | const short * | ao_values, |
const unsigned * | do_values | ||
) |
arm the capture
ao_values | initial ao values |
do_values | initial do_values |
Definition at line 77 of file ll2-api.cpp.
References DynamicSystem::instance(), and RETOK.
Referenced by main().
STATUS_OK RtDone | ( | void | ) |
stop and cleanup.
Definition at line 103 of file ll2-api.cpp.
References LL_ControlSystem::closedown(), DynamicSystem::instance(), OK, and LL_ControlSystem::Stop().
Referenced by main().
STATUS_OK RtIO | ( | const short * | ao_values, |
const unsigned * | do_values, | ||
short * | ai_values, | ||
unsigned * | di_values, | ||
unsigned * | status_values | ||
) |
set next outputs, wait for and return next sample
ao_values | next ao_values |
do_values | next do_values |
ai_values | latest ai sample |
di_values | latest di sample |
status_values | latest status values |
Definition at line 91 of file ll2-api.cpp.
References DynamicSystem::instance(), and RETOK.
Referenced by main().
STATUS_OK RtSetup | ( | const char * | config_file, |
int | argc, | ||
const char * | argv[] | ||
) |
instantiate system
config_file | .xml file with system definition |
argc | pass in argc argv for optional command line initialization set zero if not required |
argv | optional command line argv array |
Definition at line 67 of file ll2-api.cpp.
References LL_ControlSystem::init(), DynamicSystem::instance(), and OK.
Referenced by main().