2 # GoodFET SPI and SPIFlash Client Library
4 # (C) 2009 Travis Goodspeed <travis at radiantmachines.com>
6 # This code is being rewritten and refactored. You've been warned!
8 import sys, time, string, cStringIO, struct, glob, os;
10 from GoodFET import GoodFET;
12 class GoodFETSmartCard(GoodFET):
17 """Move the FET into the SmartCard application."""
18 self.writecmd(self.APP,0x10,0,self.data);
20 """Start the connection, reat ATR."""
21 self.writecmd(self.APP,0x20,0,None);