Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
213 f9daq 1
#ifndef AITMDUMANAGER_H
2
#define AITMDUMANAGER_H
3
#define DLLIMPORT __declspec(dllimport)
4
#ifdef _CVI_    
5
#include <stdbool.h>    
6
#endif
7
#ifdef __cplusplus
8
extern "C"
9
{
10
#endif
11
 
12
 
13
        DLLIMPORT int SD4_BlockError();
14
        DLLIMPORT unsigned int SD4_GetBlockTimeout();
15
        DLLIMPORT void SD4_SetBlockTimeout(unsigned int);
16
        DLLIMPORT long SD4_BlockTransferTime();
17
        DLLIMPORT unsigned int SD4_GetDriverTimeout();
18
        DLLIMPORT void SD4_SetDriverTimeout(unsigned int);
19
        DLLIMPORT char * SD4_Version();
20
        DLLIMPORT int SD4_WordsTransferred();
21
 
22
        DLLIMPORT unsigned int* SD4_FindDevices(int * ndevices);
23
        DLLIMPORT int SD4_GetDeviceCount();
24
        DLLIMPORT unsigned int* SD4_GetDeviceList(int * ndevices);
25
        DLLIMPORT char * SD4_GetUsbFirmwareVersionByDevice(unsigned int deviceId);
26
        DLLIMPORT char * SD4_GetUsbFirmwareVersion(int index);
27
        DLLIMPORT bool SD4_IsDeviceAttached(unsigned int deviceId);
28
        DLLIMPORT bool SD4_ProgramFpgaFirmwareByDevice(unsigned int deviceId, char * fpgaFirmware);
29
        DLLIMPORT bool SD4_ProgramFpgaFirmware(int index, char* fpgaFirmware);
30
        DLLIMPORT bool SD4_ProgramUsbFirmware(int index, char* usbFirmware);
31
        DLLIMPORT unsigned short SD4_Read(unsigned int deviceId, int address);
32
        DLLIMPORT char * SD4_ReadByteArray(unsigned int deviceId, int address, int requestedsize, int * elementsread);
33
        DLLIMPORT unsigned short * SD4_ReadUShortArray(unsigned int deviceId, int address, int requestedsize, int * elementsread );
34
        DLLIMPORT void SD4_ReconfigureByDevice(unsigned int deviceId);
35
        DLLIMPORT void SD4_Reconfigure(int index);
36
        DLLIMPORT void SD4_ReconnectByDevice(unsigned int deviceId);
37
        DLLIMPORT void SD4_Reconnect(int index);
38
        DLLIMPORT void SD4_ResetFpga(int index);
39
        DLLIMPORT void SD4_ResetFpgaByDevice(unsigned int deviceId);
40
        DLLIMPORT void SD4_ResetUsb(int index);
41
        DLLIMPORT void SD4_ResetUsbByDevice(unsigned int deviceId);
42
        DLLIMPORT void SD4_Write(unsigned int deviceId, int address, unsigned short data);
43
        DLLIMPORT int  SD4_WriteArray(unsigned int deviceId, int address, unsigned short* data);
44
#ifdef __cplusplus
45
}
46
#endif
47
#endif
48