FrontPanel API 5.3.5
|
Namespace containing public Opal Kelly functions and classes. More...
Classes | |
class | Buffer |
Fixed size buffer used for passing data to/from script functions. More... | |
class | FrontPanelDevices |
Allows to iterate over and open all devices available in the given realm. More... | |
class | FrontPanelManager |
Class for managing device connections and disconnections. More... | |
class | ProgressCallback |
Allows to receive progress notifications during FPGA configuration. More... | |
class | ScriptEngine |
Allows to load scripts and run functions defined in them. More... | |
class | ScriptValue |
Represents a value passed to a scripting function or returned from it. More... | |
class | ScriptValues |
A collection of script values. More... | |
Typedefs | |
typedef std::unique_ptr< okCFrontPanel > | FrontPanelPtr |
Typedef for a smart pointer to okCFrontPanel. | |
Functions | |
int | GetAPIVersionMajor () |
Return the major version of FrontPanel actually used. | |
int | GetAPIVersionMinor () |
Return the minor version of FrontPanel actually used. | |
int | GetAPIVersionMicro () |
Return the micro version of FrontPanel actually used. | |
const char * | GetAPIVersionString () |
Return the version of FrontPanel actually used as a string. | |
bool | CheckAPIVersion (int major, int minor, int micro) |
Check if FrontPanel version used during run-time is at least the given one. | |
FrontPanel::ErrorCode | FrontPanelEmulateTestDeviceConnection (const std::string &serial, bool connect) |
Connect/disconnect a device to FrontPanelManager created with a test realm. | |
Notice that earlier versions of the library used classes outside of this namespace but with "okC" prefix. These classes still exist for compatibility, but you are encouraged to use the classes in OpalKelly namespace in any new code.
bool OpalKelly::CheckAPIVersion | ( | int | major, |
int | minor, | ||
int | micro ) |
A call to this function would normally be done inside a check for OK_CHECK_API_VERSION() as otherwise the code guarded by it might not compile when using older library versions, so a typical example of its use would look like the following:
|
inline |
Connect/disconnect a device to FrontPanelManager created with okREALM_TEST for debug and test purposes. This function fires OnDeviceAdded/OnDeviceRemoved from the thread where it was called (can be different from the thread where EnterMonitorLoop() is currently running).
serial | The serial number of the emulated device. |
connect | Whether to call OnDeviceAdded or OnDeviceRemoved. |
int OpalKelly::GetAPIVersionMajor | ( | ) |
Major version is the first version component, e.g. for FrontPanel 4.5.7 the major version is 4.
int OpalKelly::GetAPIVersionMicro | ( | ) |
Micro version is the first version component, e.g. for FrontPanel 4.5.7 the micro version is 7.
int OpalKelly::GetAPIVersionMinor | ( | ) |
Minor version is the first version component, e.g. for FrontPanel 4.5.7 the minor version is 5.
const char * OpalKelly::GetAPIVersionString | ( | ) |
This string is composed of dot-separated major, minor and micro version numbers, e.g. "4.5.7" for FrontPanel 4.5.7.