]> git.zerfleddert.de Git - rigol/blob - usbtmc.h
519012e04da9aeda12cd8a38cbd9286526be6dca
[rigol] / usbtmc.h
1 struct usbtmc_header {
2 unsigned char MsgID;
3 unsigned char bTag;
4 unsigned char bTagInverse;
5 unsigned char Reserved3;
6 uint32_t TransferSize;
7 unsigned char bmTransferAttributes;
8 unsigned char TermChar; /* Only in REQUEST_DEV_DEP_MSG_IN */
9 unsigned char Reverved10;
10 unsigned char Reverved11;
11 unsigned char msg[];
12 } __attribute__ ((__packed__));
13
14 #define USBTMC_DEV_DEP_MSG_OUT 0x1
15 #define USBTMC_REQUEST_DEV_DEP_MSG_IN 0x2
16 #define USBTMC_DEV_DEP_MSG_IN 0x2
17
18 #define USBTMC_TRANSFERATTRIB_EOM (1<<0)
19 #define USBTMC_TRANSFERATTRIB_TERMCHAR (1<<1)
20
21 int usbtmc_sendscpi(struct scope *sc, char* cmd, unsigned char *resp, int resplen);
22 struct scope * usbtmc_initscope(void);
23 void usbtmc_close(struct scope *sc);
24 void usbtmc_claim(struct scope *sc);
25 void usbtmc_release(struct scope *sc);
Impressum, Datenschutz