X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstlink-usb.h;h=938c07bcbf985a78e747fc98fb3c0c299368fcda;hb=99ed4754785a8b813042b004f91b678d71e6f1ae;hp=63b53695e270fd5ecd1e5ec28ae6c4636d630ba3;hpb=5cd3ad39badef8f04b3380dfe2dfc82fc8b1b4ca;p=fw%2Fstlink diff --git a/src/stlink-usb.h b/src/stlink-usb.h index 63b5369..938c07b 100644 --- a/src/stlink-usb.h +++ b/src/stlink-usb.h @@ -1,4 +1,4 @@ -/* +/* * File: stlink-usb.h * Author: karl * @@ -14,23 +14,21 @@ extern "C" { #include #include "stlink-common.h" - + #define STLINK_SG_SIZE 31 #define STLINK_CMD_SIZE 16 struct stlink_libusb { libusb_context* libusb_ctx; libusb_device_handle* usb_handle; - struct libusb_transfer* req_trans; - struct libusb_transfer* rep_trans; unsigned int ep_req; unsigned int ep_rep; int protocoll; unsigned int sg_transfer_idx; unsigned int cmd_len; }; - - stlink_t* stlink_open_usb(const int verbose); + + stlink_t* stlink_open_usb(const int verbose, int reset, char *p_usb_iserial); #ifdef __cplusplus