More MSKB letters.
[goodfet] / client / GoodFETJTAG.py
1 #!/usr/bin/env python
2 # GoodFET Basic JTAG Client
3
4 import sys, binascii, struct
5
6 # Standard verbs
7 READ  = 0x00
8 WRITE = 0x01
9 PEEK  = 0x02
10 POKE  = 0x03
11 SETUP = 0x10
12 START = 0x20
13 STOP  = 0x21
14 CALL  = 0x30
15 EXEC  = 0x31
16 NOK   = 0x7E
17 OK    = 0x7F
18
19 from GoodFET import GoodFET
20 from intelhex import IntelHex
21
22 class GoodFETJTAG(GoodFET):
23
24     """A GoodFET variant for basic JTAG'ing."""
25
26     JTAGAPP=0x10;
27     APP=JTAGAPP;
28  
29     def setup(self):
30         """Move the FET into the JTAG configuration."""
31         print "Initializing JTAG..."
32         #self.writecmd(self.APP, SETUP, 0, self.data)
33
34     def detect(self):
35         """Detect the JTAG IR width."""
36         pass
37
38