X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETCC.py;h=e2f28e69fb8f7baa0fe9b575d061d555871e5955;hp=d5208bd2dccf01f0f90430465fad8589ee86f8b1;hb=002c3c7923311e13f0ff2fcdfb292aa1c94ebe89;hpb=8869ee2fe66d402ec6e56f256098486c6904c871 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];