fsusb.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef __FSUSB_H__
  20. #define __FSUSB_H__
  21. #include "bootload.h"
  22. typedef struct usb_dev_handle picdem_handle;
  23. void rjl_request_flash(picdem_handle *d, int offset, int len, bl_packet *pack);
  24. void rjl_request_version(picdem_handle *d, unsigned char *r);
  25. //void rjl_write_flash(picdem_handle *d, int offset, int len, byte *data, bl_packet *pack);
  26. //void rjl_wipe_flash(picdem_handle *d);
  27. picdem_handle *rjl_fsusb_open(void);
  28. void rjl_write_block(picdem_handle *d, int offset, byte *data);
  29. //void rjl_erase_block(picdem_handle *d, int offset);
  30. void rjl_write_config_block(picdem_handle *d, int offset, int len, byte *data);
  31. #endif /* __FSUSB_H__ */