|
1 /* |
|
2 ** This file is part of fsusb_picdem |
|
3 ** |
|
4 ** fsusb_picdem is free software; you can redistribute it and/or |
|
5 ** modify it under the terms of the GNU General Public License as |
|
6 ** published by the Free Software Foundation; either version 2 of the |
|
7 ** License, or (at your option) any later version. |
|
8 ** |
|
9 ** fsusb_picdem is distributed in the hope that it will be useful, but |
|
10 ** WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12 ** General Public License for more details. |
|
13 ** |
|
14 ** You should have received a copy of the GNU General Public License |
|
15 ** along with fsusb_picdem; if not, write to the Free Software |
|
16 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
17 ** 02110-1301, USA |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __FSUSB_H__ |
|
22 #define __FSUSB_H__ |
|
23 |
|
24 #include "bootload.h" |
|
25 |
|
26 typedef struct usb_dev_handle picdem_handle; |
|
27 |
|
28 void rjl_request_flash(picdem_handle *d, int offset, int len, bl_packet *pack); |
|
29 void rjl_request_version(picdem_handle *d, unsigned char *r); |
|
30 //void rjl_write_flash(picdem_handle *d, int offset, int len, byte *data, bl_packet *pack); |
|
31 //void rjl_wipe_flash(picdem_handle *d); |
|
32 picdem_handle *rjl_fsusb_open(void); |
|
33 void rjl_write_block(picdem_handle *d, int offset, byte *data); |
|
34 //void rjl_erase_block(picdem_handle *d, int offset); |
|
35 void rjl_write_config_block(picdem_handle *d, int offset, int len, byte *data); |
|
36 |
|
37 #endif /* __FSUSB_H__ */ |