Subversion Repositories f9daq

Rev

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

Rev 100 Rev 138
Line 9... Line 9...
9
#include "usb.h"
9
#include "usb.h"
10
#else 
10
#else 
11
#include "/usr/include/usb.h"
11
#include "/usr/include/usb.h"
12
#endif
12
#endif
13
 
13
 
14
#include "xxusb_dll.h"
-
 
15
 
14
 
-
 
15
#ifdef XXDLL
-
 
16
#include "xxusb_dll.h"
-
 
17
#else 
-
 
18
#include "libxxusb.h"
-
 
19
#endif
16
 
20
 
17
#define CMD_WRITE 0x000
21
#define CMD_WRITE 0x000
18
#define CMD_READ  0x100
22
#define CMD_READ  0x100
19
#define CMD_A24   0x039
23
#define CMD_A24   0x039
20
#define CMD_A32   0x009
24
#define CMD_A32   0x009
Line 44... Line 48...
44
#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))
45
#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))
46
 
50
 
47
#define WIENER_VMUSB_StackMarker(MRK) WIENER_VMUSB_StackAppend(CMD_MRK, (MRK))
51
#define WIENER_VMUSB_StackMarker(MRK) WIENER_VMUSB_StackAppend(CMD_MRK, (MRK))
48
 
52
 
49
        int WIENER_VMUSB_StackAppend(int cmd, uint32_t addr);
53
  int WIENER_VMUSB_StackAppend(int cmd, uint32_t addr);
50
        int WIENER_VMUSB_StackAppendData(int cmd, uint32_t addr, uint32_t data);
54
  int WIENER_VMUSB_StackAppendData(int cmd, uint32_t addr, uint32_t data);
51
 
55
 
52
        void WIENER_VMUSB_StackConditionalRead(int am ,int d16d32,uint32_t addr, uint32_t data);
56
  void WIENER_VMUSB_StackConditionalRead(int am ,int d16d32,uint32_t addr, uint32_t data);
53
        void WIENER_VMUSB_StackMultiRead(int addr_modifier,int d16d32, uint32_t baseaddr, int n,uint32_t increment);
57
  void WIENER_VMUSB_StackMultiRead(int addr_modifier,int d16d32, uint32_t baseaddr, int n,uint32_t increment);
54
  void WIENER_VMUSB_StackMultiWrite(int addr_modifier,int d16d32,uint32_t baseaddr, int n, uint32_t increment, uint32_t data);
58
  void WIENER_VMUSB_StackMultiWrite(int addr_modifier,int d16d32,uint32_t baseaddr, int n, uint32_t increment, uint32_t data);
55
 
59
 
56
        int WIENER_VMUSB_StackGetUint32(int maxn, uint32_t *stack);
60
  int WIENER_VMUSB_StackGetUint32(int maxn, uint32_t *stack);
57
    int WIENER_VMUSB_StackGetUint16(int maxn, uint16_t *stack);  
61
    int WIENER_VMUSB_StackGetUint16(int maxn, uint16_t *stack);  
58
  void WIENER_VMUSB_StackPrint();
62
  void WIENER_VMUSB_StackPrint();
59
 
63
 
60
 
64
 
61
void _VI_FUNC WIENER_VMUSB_load (const char *module_path);
65
void _VI_FUNC WIENER_VMUSB_load (const char *module_path);