0592d5bcec94dcc7c30054810c4f8f79f9f9234c
[pub/USBasp.git] / software / usbasp.h
1 #ifndef __usbasp_h__
2 #define __usbasp_h__
3
4 #include "avrpart.h"
5
6
7 #define USBDEV_VENDOR 0x03eb /* ATMEL */
8 #define USBDEV_PRODUCT 0xc7B4 /* USBasp */
9
10 #define USBASP_FUNC_CONNECT 1
11 #define USBASP_FUNC_DISCONNECT 2
12 #define USBASP_FUNC_TRANSMIT 3
13 #define USBASP_FUNC_READFLASH 4
14 #define USBASP_FUNC_ENABLEPROG 5
15 #define USBASP_FUNC_WRITEFLASH 6
16 #define USBASP_FUNC_READEEPROM 7
17 #define USBASP_FUNC_WRITEEEPROM 8
18
19 #define USBASP_BLOCKFLAG_FIRST 1
20 #define USBASP_BLOCKFLAG_LAST 2
21
22 #define USBASP_READBLOCKSIZE 200
23 #define USBASP_WRITEBLOCKSIZE 200
24
25
26 void usbasp_initpgm (PROGRAMMER * pgm);
27
28 #endif /* __usbasp_h__ */