Download TDC-V4 - lumat
Transcript
12. DLL Functions This chapter helps to use DLL Functions supplied with TDC-V4 board for C/C++ software. This DLL was developed by ISITech company and TDC-V4 is compatible with it. An optimized DLL will be developed later. 12.a. required files For C/C++ software, the following files enclosed in the DLL folder of the TDC-V4 Package, must be included into the program : isitime_dll.dll : DLL file import_dll.h : header file isitime_dll.lib : resource file 12.b. functions Driver opening : Void OuvertureDriver(char *flag, unsigned long vID, unsigned long dID, int mc) To be used during each program launching. This function needs the following parameters : flag returns the value 20 if the function is successful vID = 0x10B5 dID = 0x5406 mc = -1 Driver closing : Void FermetureDriver() To be used during each program exit. Writing into a register : Bool Data_Ecriture(int *buffer, int taille, unsigned long adresse, int mode) To be used to write into the Mode and Command registers : buffer : data word (32 bits wide) size = 1 address : report to summary chapter 14 mode = 6 TDC-V4 – User Manual 40