Subversion Repositories f9daq

Rev

Rev 138 | Rev 307 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 138 Rev 264
Line 36... Line 36...
36
 
36
 
37
int WIENER_VMUSB_StackInit();
37
int WIENER_VMUSB_StackInit();
38
void WIENER_VMUSB_StackClear();
38
void WIENER_VMUSB_StackClear();
39
 
39
 
40
 
40
 
41
#define  WIENER_VMUSB_StackReadA24D16( ADDR, DATA )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A24 , CMD_D16 | (ADDR) )
41
#define  WIENER_VMUSB_StackReadA24D16( ADDR )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A24 , CMD_D16 | (ADDR) )
42
#define  WIENER_VMUSB_StackReadA24D32( ADDR, DATA )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A24 , CMD_D32 | (ADDR) ) 
42
#define  WIENER_VMUSB_StackReadA24D32( ADDR )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A24 , CMD_D32 | (ADDR) ) 
43
#define  WIENER_VMUSB_StackReadA32D16( ADDR, DATA )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A32 , CMD_D16 | (ADDR) ) 
43
#define  WIENER_VMUSB_StackReadA32D16( ADDR )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A32 , CMD_D16 | (ADDR) ) 
44
#define  WIENER_VMUSB_StackReadA32D32( ADDR, DATA )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A32 , CMD_D32 | (ADDR) ) 
44
#define  WIENER_VMUSB_StackReadA32D32( ADDR )        WIENER_VMUSB_StackAppend(CMD_READ | CMD_A32 , CMD_D32 | (ADDR) ) 
45
 
45
 
46
#define  WIENER_VMUSB_StackWriteA24D16( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A24,CMD_D16 | (ADDR), (DATA))
46
#define  WIENER_VMUSB_StackWriteA24D16( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A24,CMD_D16 | (ADDR), (DATA))
47
#define  WIENER_VMUSB_StackWriteA24D32( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A24,CMD_D32 | (ADDR), (DATA))
47
#define  WIENER_VMUSB_StackWriteA24D32( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A24,CMD_D32 | (ADDR), (DATA))
48
#define  WIENER_VMUSB_StackWriteA32D16( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A32,CMD_D16 | (ADDR), (DATA))
48
#define  WIENER_VMUSB_StackWriteA32D16( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A32,CMD_D16 | (ADDR), (DATA))
49
#define  WIENER_VMUSB_StackWriteA32D32( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A32,CMD_D32 | (ADDR), (DATA))
49
#define  WIENER_VMUSB_StackWriteA32D32( ADDR, DATA)  WIENER_VMUSB_StackAppendData(CMD_WRITE | CMD_A32,CMD_D32 | (ADDR), (DATA))
Line 63... Line 63...
63
 
63
 
64
 
64
 
65
void _VI_FUNC WIENER_VMUSB_load (const char *module_path);
65
void _VI_FUNC WIENER_VMUSB_load (const char *module_path);
66
void _VI_FUNC WIENER_VMUSB_open (const char *serial);
66
void _VI_FUNC WIENER_VMUSB_open (const char *serial);
67
void _VI_FUNC WIENER_VMUSB_close (void);
67
void _VI_FUNC WIENER_VMUSB_close (void);
-
 
68
extern usb_dev_handle *WUSB_udev;
68
 
69
 
69
#define WIENER_VMUSB_VME_START(NODE) WIENER_VMUSB_load(NULL);WIENER_VMUSB_open((NODE));
70
#define WIENER_VMUSB_VME_START(NODE) WIENER_VMUSB_load(NULL);WIENER_VMUSB_open((NODE));
70
#define WIENER_VMUSB_VME_STOP() WIENER_VMUSB_close()
71
#define WIENER_VMUSB_VME_STOP() WIENER_VMUSB_close()
71
//#define VME_RESET() WIENVME_reset()
72
//#define VME_RESET() WIENVME_reset()
72
//#define VME_A24D8_R(VME,DATA) WIENVME_read8(hHandle24, 1, (VME), (DATA))
73
//#define VME_A24D8_R(VME,DATA) WIENVME_read8(hHandle24, 1, (VME), (DATA))