summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits/Client.xs
blob: 3bd831fd44193e44a027e9633778f36a58213643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "ppport.h"

MODULE = VXI11::Client		PACKAGE = VXI11::Client		

PROTOTYPES: ENABLE

int
abort()
	CODE:
		RETVAL = vxi11_abort();
	OUTPUT:
		RETVAL

int
clear(waitforlock)
	bool	waitforlock
	CODE:
		RETVAL = vxi11_clear(waitforlock);
	OUTPUT:
		RETVAL

int
close()
	CODE:
		RETVAL = vxi11_close();
	OUTPUT:
		RETVAL

int
create_intr_chan()
	CODE:
		RETVAL = vxi11_create_intr_chan();
	OUTPUT:
		RETVAL

int
destroy_intr_chan()
	CODE:
		RETVAL = vxi11_destroy_intr_chan();
	OUTPUT:
		RETVAL

int
docmd(cmd, waitforlock)
	unsigned long	cmd
	bool	waitforlock
	CODE:
		RETVAL = vxi11_docmd();
	OUTPUT:
		RETVAL

int
enable_srq(enable)
	bool	enable
	CODE:
		RETVAL = glue_enable_srq(enable);
	OUTPUT:
		RETVAL

int
wait_for_interrupt()
        CODE:
                RETVAL = glue_wait_for_interrupt();
        OUTPUT:
                RETVAL


int
local(waitforlock)
	bool	waitforlock
	CODE:
		RETVAL = vxi11_local(waitforlock);
	OUTPUT:
		RETVAL

int
lock(waitforlock)
	bool	waitforlock
	CODE:
		RETVAL = vxi11_lock(waitforlock);
	OUTPUT:
		RETVAL

int
open(address, device)
	char *	address
	char *	device
	CODE:
		RETVAL = vxi11_open(address, device);	
	OUTPUT:
		RETVAL

int
read(buffer, bufferlen, waitlock, termchrset, termchr)
	char *	buffer
	unsigned int	bufferlen
	bool	waitlock
	bool	termchrset
	char	termchr
	CODE:
		RETVAL = vxi11_read(buffer, bufferlen, waitlock, termchrset, termchr);
	OUTPUT:
		RETVAL

int
readstatusbyte(waitforlock)
	bool	waitforlock
	CODE:
		RETVAL = vxi11_readstatusbyte();
	OUTPUT:
		RETVAL

int
remote(waitforlock)
	bool	waitforlock
	CODE:
		RETVAL = vxi11_remote();
	OUTPUT:
		RETVAL

int
trigger(waitforlock)
	bool	waitforlock
	CODE:
		RETVAL = vxi11_trigger();
	OUTPUT:
		RETVAL

int
unlock()
	CODE:
		RETVAL = vxi11_unlock();
	OUTPUT:
		RETVAL

int
write(data, len, waitlock, end)
	char *	data
	unsigned int	len
	bool	waitlock
	bool	end
	CODE:
		RETVAL = vxi11_write(data, len, waitlock, end);
	OUTPUT:
		RETVAL