X-Git-Url: http://git.rot13.org//?a=blobdiff_plain;f=client%2FGoodFET.py;h=65fb46cce5a35170e660f25f95fb6ac7716b44ce;hb=5fb0341d348e101b30794945a6c91546e25e8e7b;hp=98c2494f43a5b19598ba6a35bdbf31b0a6e41f31;hpb=1969a022e69bdac64a0d88de3d0ce88d79a27804;p=goodfet diff --git a/client/GoodFET.py b/client/GoodFET.py index 98c2494..65fb46c 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -478,6 +478,30 @@ class GoodFET: if self.verbose: print "Comm error recognized by monitorecho()."; return 0; return 1; + + def monitor_info(self): + print "GoodFET with %s MCU" % self.infostring(); + print "Clocked at %s" % self.monitorclocking(); + return 1; + + def monitor_list_apps(self, full=False): + self.monitor_info() + old_value = self.besilent + self.besilent = True # turn off automatic call to readcmd + self.writecmd(self.MONITORAPP, 0x82, 1, [int(full)]); + self.besilent = old_value + + # read the build date string + self.readcmd() + print "Build Date: %s" % self.data + print "Firmware apps:" + while True: + self.readcmd() + if self.count == 0: + break + print self.data + return 1; + def monitorclocking(self): """Return the 16-bit clocking value.""" return "0x%04x" % self.monitorgetclock();