2 # GoodFET Atmel 2-wire EEPROM client library
5 import sys, time, string, cStringIO, struct, glob, serial, os;
7 from GoodFET import GoodFET;
9 class GoodFETtwe(GoodFET):
14 """Move the FET into the SPI application."""
15 self.writecmd(0x05, 0x10, 0, []) # SETUP
17 def peekblock(self, adr):
18 """Grab a few block from an SPI Flash ROM. Block size is unknown"""
19 data = [adr&0xFF, (adr&0xFF00)>>8]
21 self.writecmd(0x05, 0x02, 2, data) # PEEK