Initialization funcitions, Loaddriver, Inithardware – Dataman 530 Series User Manual
Page 11: Loaddriver 3.2.2. inithardware
Development kit for DATAMAN 530
Programmer’s Guide
3.2. Initialization funcitions
3.2.1. LoadDriver
Loads m530drv.dll driver.
Public Declare Function LoadDriver Lib "m570drvdk.dll" () As Long
Parameters: -
Return value:
ERROR_OK – driver loaded successfully
ERROR_DRIVER_NOT_LOADED – unable to load m530drv.dll library
ERROR_DRIVER_INCOMPATIBLE – m530drv.dll isn’t compatible with DK
Remark:
The returned value is stored in the internal DK variable as well. Use
GetDKError function to access this internal variable.
3.2.2. InitHardware
Initializes device. After successful call of this function, the device can be used.
Public Declare Function InitHardware Lib "m530drvdk.dll" (ByRef CalibOK
As Long) As Long
Parameters:
CalibOK – this variable will be filled with information whether the calibration
data in the device is ok
1 – calibration data is ok
0 – calibration data in the device is not ok.
Return value:
ERROR_OK – device was initialized successfully
ERROR_UNABLE_TO_LOAD_EM53X – unable to load em53x driver
ERROR_INIT_FAILED – device initialization failed (one of the reason can be,
that the device isn’t connected)
ERROR_FPGA_CONFIG_FAILED – FPGA initialization failed
ERROR_DK_NOT_ENABLED – the DK isn’t enabled in the connected device
ERROR_DRIVER_NOT_LOADED – the driver m530drv.dll wasn’t loaded
before this call (use LoadDriver function to load it)
- 11 -