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):
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):
self.writecmd(self.CCSPIAPP,0xA0,len(data),data);
return;
self.writecmd(self.CCSPIAPP,0xA0,len(data),data);
return;
and that also sends a forged ACK if needed."""
data = "";
self.writecmd(self.CCSPIAPP,0xA1,len(data),data);
and that also sends a forged ACK if needed."""
data = "";
self.writecmd(self.CCSPIAPP,0xA1,len(data),data);