Initialization functions, Deinithardware inithardware loaddriver, Loaddriver – Dataman 520 Series User Manual
Page 10: Function, Inithardware, Initializes device, Deinithardware
Development kit for DATAMAN 520 series
Programmer’s Guide
3.1. Initialization functions
DeInitHardware
Deinitializes the device and releases the device driver library.
Declaration:
typedef _export _stdcall void (*fDeInitHardware)(void);
TDeInitHardware = procedure; stdcall;
Public Declare Sub DeInitHardware Lib "VBDevKit52X.dll" ()
Parameters:
None
Return value:
None
InitHardware
Performs the device initialization.
Declaration:
typedef _export _stdcallint (*fInitHardware) (void*DeviceContextBuffer);
TInitHardware = function (DeviceContextBuffer: Pointer): Integer; stdcall;
Public Declare Function InitHardware Lib "VBDevKit52X.dll" () As Long
Parameters:
DeviceContextBuffer – Pointer to the device context data structure. It is filled
with device dependent values after successful initialization.
Returned value:
ERROR_OK – Initialization successful
ERROR_USB_DRIVER_NOT_LOADED – USB driver loading failed
ERROR_DEVICE_CONFIGURATION_FAILED – Unable to configure FPGA
ERROR_DEVICE_CALIBRATION_BROKEN – Calibration data in device are
corrupted
ERROR_DEVICE_DRIVER_NO_ENTRY_POINT – Device driver is not
compatible with DK
ERROR_DEVELOPMENT_KIT_NOT_ENABLED – DK cannot be used with
connected device (DK was not purchased)
ERROR_USB_FAILED – Unable to communicate with device
ERROR_UNKNOWN_DEVICE – Unknown device is connected
LoadDriver
Loads the device driver library.
Declaration:
- 10 -