Impact Acquire SDK C
|
This is the documentation for developers who want to work with the C compliant interface of the driver. This interface represents the basis for the C++ interface but it can also be access with pure C-compilers or from other programming languages that can take advantage of C compliant exported dynamic library functions.
The standard way of using this library roughly works like this:
Before any device can be accessed the user need to initialize the library. To this the functions DMR_Init() must be used. Calling this function for the first time will initialize internal data structures and will force the device manager to scan the system for recognized device types.
This function can be called multiple times, but for each time DMR_Init() is called the user must make sure that later, when this library is not needed anymore the function DMR_Close() is called, as otherwise resource leaks will occur.
After the library has been initialized successfully (the return value of most of the functions in this module will be an error code), the user can start to locate a certain device by using the function DMR_GetDevice(). When the corresponding device has been located, this device can be initialized or closed via calls to the functions DMR_OpenDevice() and DMR_CloseDevice()
Once a device has been initialized the user will receive a handle to the devices interface (HDRV). This handle is needed to call most of the other functions interacting with the actual device. All the functions called for a certain device will start with a leading DMR_. These include (among others) functions to capture and access images and functions to load a save settings made for this device.