]>
git.zerfleddert.de Git - rigol/blob - usbtmc.h
519012e04da9aeda12cd8a38cbd9286526be6dca
4 unsigned char bTagInverse
;
5 unsigned char Reserved3
;
7 unsigned char bmTransferAttributes
;
8 unsigned char TermChar
; /* Only in REQUEST_DEV_DEP_MSG_IN */
9 unsigned char Reverved10
;
10 unsigned char Reverved11
;
12 } __attribute__ ((__packed__
));
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
18 #define USBTMC_TRANSFERATTRIB_EOM (1<<0)
19 #define USBTMC_TRANSFERATTRIB_TERMCHAR (1<<1)
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
);