blob: b65e711a0e46840fad988b4b977cbbda85633582 (
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
|
#include "vxi11.h"
#define ERR_SYNTAXERROR -1
#define ERR_DEVICENOTACCESSIBLE -3
#define ERR_INVALIDLINKINDENTIFIER -4
#define ERR_PARAMETERERROR -5
#define ERR_CHANNELNOTESTABLISHED -6
#define ERR_OPERATIONNOTSUPPORTED -8
#define ERR_OUTOFRESOURCES -9
#define ERR_DEVICELOCKEDBYANOTHERLINK -11
#define ERR_NOLOCKHELDBYTHISLINK -12
#define ERR_IOTIMEOUT -15
#define ERR_IOERROR -17
#define ERR_INVALIDADDRESS -21
#define ERR_ABORT -23
#define ERR_CHANNELALREADYESTABLISHED -29
#define FLAG_TERMCHRSET (1 << 7)
#define FLAG_END (1 << 3)
#define FLAG_WAITLOCK 1
int vxi11_open(char* address, char* device);
int vxi11_abort();
int vxi11_trigger();
int vxi11_clear();
int vxi11_write();
int vxi11_read();
int vxi11_lock();
int vxi11_unlock();
int vxi11_local();
int vxi11_readstatusbyte();
int vxi11_remote();
int vxi11_create_intr_chan();
int vxi11_destroy_intr_chan();
int vxi11_docmd(unsigned long cmd);
int vxi11_close();
|