5 * Created on October 1, 2011, 11:29 PM
16 #include "stlink-common.h"
18 #define STLINK_SG_SIZE 31
19 #define STLINK_CMD_SIZE 16
21 struct stlink_libusb {
22 libusb_context* libusb_ctx;
23 libusb_device_handle* usb_handle;
24 struct libusb_transfer* req_trans;
25 struct libusb_transfer* rep_trans;
29 unsigned int sg_transfer_idx;
33 stlink_t* stlink_open_usb(const int verbose);
40 #endif /* STLINK_USB_H */