OpenHantek
ezusb.h
Go to the documentation of this file.
1
#pragma once
2
/*
3
* Copyright © 2001 Stephen Williams (steve@icarus.com)
4
* Copyright © 2002 David Brownell (dbrownell@users.sourceforge.net)
5
* Copyright © 2013 Federico Manzan (f.manzan@gmail.com)
6
*
7
* This source code is free software; you can redistribute it
8
* and/or modify it in source code form under the terms of the GNU
9
* General Public License as published by the Free Software
10
* Foundation; either version 2 of the License, or (at your option)
11
* any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#include <inttypes.h>
23
24
struct
libusb_device_handle;
25
#define FX_TYPE_FX2 2
/* USB 2.0 versions */
26
#define FX_TYPE_FX2LP 3
/* Updated FX2 */
27
#define FX_TYPE_FX3 4
/* USB 3.0 versions */
28
29
/*
30
* This function uploads the firmware from the given file into RAM.
31
* Stage == 0 means this is a single stage load (or the first of
32
* two stages). Otherwise it's the second of two stages; the
33
* caller having preloaded the second stage loader.
34
*
35
* The target processor is reset at the end of this upload.
36
*/
37
extern
int
ezusb_load_ram
(libusb_device_handle *device,
const
char
*path,
int
fx_type,
int
stage);
38
39
/* Verbosity level (default 1). Can be increased or decreased with options v/q
40
*/
41
extern
int
verbose
;
ezusb_load_ram
int ezusb_load_ram(libusb_device_handle *device, const char *path, int fx_type, int stage)
Definition:
ezusb.cpp:550
verbose
int verbose
Definition:
ezusb.cpp:55
usb
ezusb.h
Generated by
1.8.14