Debian Codegraph @

src/dfuse.h

raw
1 /* This implements the ST Microsystems DFU extensions (DfuSe)
2 * as per the DfuSe 1.1a specification (Document UM0391)
3 *
4 * (C) 2010-2012 Tormod Volden <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef DFUSE_H
22 #define DFUSE_H
23
24 #include "dfu.h"
25
26 enum dfuse_command { SET_ADDRESS, ERASE_PAGE, MASS_ERASE, READ_UNPROTECT };
27
28 int dfuse_do_upload(struct dfu_if *dif, int xfer_size, int fd,
29 const char *dfuse_options);
30 int dfuse_do_dnload(struct dfu_if *dif, int xfer_size, struct dfu_file *file,
31 const char *dfuse_options);
32 int dfuse_multiple_alt(struct dfu_if *dfu_root);
33
34 #endif /* DFUSE_H */