]>
Commit | Line | Data |
---|---|---|
1 | struct scope { | |
2 | struct { | |
3 | struct usb_dev_handle *dev; | |
4 | int ep_bulk_out; | |
5 | unsigned int wMaxPacketSize_out; | |
6 | int ep_bulk_in; | |
7 | unsigned int wMaxPacketSize_in; | |
8 | } usb; | |
9 | char idn[128]; | |
10 | }; | |
11 | ||
12 | int sendscpi(struct scope* sc, char* cmd, unsigned char *resp, int resplen); | |
13 | struct scope* initscope(void); | |
14 | void closescope(struct scope* sc); | |
15 | void claimscope(struct scope* sc); | |
16 | void releasescope(struct scope* sc); | |
17 | char *scope_idn(struct scope *sc); |