USBasp 2011.05.28.
[pub/USBasp.git] / firmware / usbasp.h
index 6953e8a..b60bd04 100644 (file)
 #define USBASP_FUNC_WRITEEEPROM 8
 #define USBASP_FUNC_SETLONGADDRESS 9
 #define USBASP_FUNC_SETISPSCK 10
+#define USBASP_FUNC_TPI_CONNECT      11
+#define USBASP_FUNC_TPI_DISCONNECT   12
+#define USBASP_FUNC_TPI_RAWREAD      13
+#define USBASP_FUNC_TPI_RAWWRITE     14
+#define USBASP_FUNC_TPI_READBLOCK    15
+#define USBASP_FUNC_TPI_WRITEBLOCK   16
+#define USBASP_FUNC_GETCAPABILITIES 127
+
+/* USBASP capabilities */
+#define USBASP_CAP_0_TPI    0x01
 
 /* programming state */
 #define PROG_STATE_IDLE         0
@@ -29,6 +39,8 @@
 #define PROG_STATE_READFLASH    2
 #define PROG_STATE_READEEPROM   3
 #define PROG_STATE_WRITEEEPROM  4
+#define PROG_STATE_TPI_READ     5
+#define PROG_STATE_TPI_WRITE    6
 
 /* Block mode flags */
 #define PROG_BLOCKFLAG_FIRST    1