X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETCC.py;h=e2f28e69fb8f7baa0fe9b575d061d555871e5955;hp=d5208bd2dccf01f0f90430465fad8589ee86f8b1;hb=99240d23ad8e006fbef01e3f4824f14c81fba768;hpb=f1803b3ed1a5bd2673fb14c1f023940355cb4254 diff --git a/client/GoodFETCC.py b/client/GoodFETCC.py index d5208bd..e2f28e6 100644 --- a/client/GoodFETCC.py +++ b/client/GoodFETCC.py @@ -106,6 +106,17 @@ class GoodFETCC(GoodFET): self.data=[adr&0xff, (adr&0xff00)>>8]; self.writecmd(0x30,0x91, 2, self.data); return ord(self.data[0]); + def CCpeekirambyte(self,adr): + """Read the contents of IRAM at an address.""" + self.data=[adr&0xff]; + self.writecmd(0x30,0x02, 1, self.data); + return ord(self.data[0]); + def CCpokeirambyte(self,adr,val): + """Write the contents of IRAM at an address.""" + self.data=[adr&0xff, val&0xff]; + self.writecmd(0x30,0x02, 2, self.data); + return ord(self.data[0]); + def CCpokedatabyte(self,adr,val): """Write a byte to data memory.""" self.data=[adr&0xff, (adr&0xff00)>>8, val];