From: travisutk Date: Tue, 3 Jan 2012 16:11:20 +0000 (+0000) Subject: Minor CCSPI client patches. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=763022cfff087e3a0123f5e6646521d065f5ad91 Minor CCSPI client patches. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1079 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETCCSPI.py b/client/GoodFETCCSPI.py index c056cf3..0068e3e 100644 --- a/client/GoodFETCCSPI.py +++ b/client/GoodFETCCSPI.py @@ -135,13 +135,15 @@ class GoodFETCCSPI(GoodFET): fsctrl=0x8000; #self.peek(0x18)&(~0x3FF); fsctrl=fsctrl+int(mhz-2048) self.poke(0x18,fsctrl); - self.strobe(0x02); + self.strobe(0x02);//SCAL + self.strobe(0x03);//SRXON def RF_getfreq(self): """Get the frequency in Hz.""" fsctrl=self.peek(0x18); mhz=2048+(fsctrl&0x3ff) return mhz*1000000; def RF_setchan(self,channel): + """Set the ZigBee/802.15.4 channel number.""" if channel < 11 or channel > 26: print "Only 802.15.4 channels 11 to 26 are currently supported."; else: