Package killerbee :: Module GoodFETCCSPI :: Class GoodFETCCSPI
[hide private]
[frames] | no frames]

Class GoodFETCCSPI

source code

GoodFET.GoodFET --+
                  |
                 GoodFETCCSPI

Instance Methods [hide private]
 
setup(self)
Move the FET into the CCSPI application.
source code
 
ident(self) source code
 
identstr(self) source code
 
trans8(self, byte)
Read and write 8 bits by CCSPI.
source code
 
trans(self, data)
Exchange data by CCSPI.
source code
 
strobe(self, reg=0)
Strobes a strobe register, returning the status.
source code
 
CC_RFST_IDLE(self)
Switch the radio to idle mode, clearing overflows and errors.
source code
 
CC_RFST_TX(self)
Switch the radio to TX mode.
source code
 
CC_RFST_RX(self)
Switch the radio to RX mode.
source code
 
CC_RFST_CAL(self)
Calibrate strobe the radio.
source code
 
CC_RFST(self, state=0) source code
 
peek(self, reg, bytes=2)
Read a CCSPI Register.
source code
 
poke(self, reg, val, bytes=2)
Write a CCSPI Register.
source code
 
status(self)
Read the status byte.
source code
 
RF_setenc(self, code='802.15.4')
Set the encoding type.
source code
 
RF_getenc(self)
Get the encoding type.
source code
 
RF_getrate(self) source code
 
RF_setrate(self, rate=0) source code
 
RF_getsync(self) source code
 
RF_setsync(self, sync=42767)
Set the SYNC preamble.
source code
 
RF_setkey(self, key)
Sets the first key for encryption to the given argument.
source code
 
RF_setnonce(self, key)
Sets the first key for encryption to the given argument.
source code
 
RF_setfreq(self, frequency)
Set the frequency in Hz.
source code
 
RF_getfreq(self)
Get the frequency in Hz.
source code
 
RF_setchan(self, channel)
Set the ZigBee/802.15.4 channel number.
source code
 
RF_getsmac(self)
Return the source MAC address.
source code
 
RF_setsmac(self, mac)
Set the source MAC address.
source code
 
RF_gettmac(self)
Return the target MAC address.
source code
 
RF_settmac(self, mac)
Set the target MAC address.
source code
 
RF_getrssi(self)
Returns the received signal strength, with a weird offset.
source code
 
peekram(self, adr, count)
Peeks data from CC2420 RAM.
source code
 
pokeram(self, adr, data)
Pokes data into CC2420 RAM.
source code
 
RF_rxpacket(self)
Get a packet from the radio.
source code
 
RF_rxpacketrepeat(self)
Gets packets from the radio, ignoring all future requests so as not to waste time.
source code
 
RF_rxpacketdec(self)
Get and decrypt a packet from the radio.
source code
 
RF_txpacket(self, packet)
Send a packet through the radio.
source code
 
RF_reflexjam(self, duration=0)
Place the device into reflexive jamming mode.
source code
 
RF_reflexjam_autoack(self)
Place the device into reflexive jamming mode and that also sends a forged ACK if needed.
source code
 
RF_modulated_spectrum(self)
Hold a carrier wave on the present frequency.
source code
 
RF_carrier(self)
Hold a carrier wave on the present frequency.
source code
 
RF_promiscuity(self, promiscuous=1) source code
 
RF_autocrc(self, autocrc=1) source code
 
RF_autoack(self, autoack=1) source code
 
RF_setpacketlen(self, len=16)
Set the number of bytes in the expected payload.
source code
 
RF_getpacketlen(self)
Set the number of bytes in the expected payload.
source code
 
RF_getmaclen(self)
Get the number of bytes in the MAC address.
source code
 
RF_setmaclen(self, len)
Set the number of bytes in the MAC address.
source code
 
printpacket(self, packet, prefix='#') source code
 
packet2str(self, packet, prefix='#') source code
 
printdissect(self, packet) source code

Inherited from GoodFET.GoodFET: MONpeek16, MONpeek8, MONpoke16, __init__, bslResetZ1, btInit, call, dir, dump, dumpmem, eeprompeek, erase, execute, findbaud, flash, getConsole, getbuffer, getpc, getsecret, glitchApp, glitchRate, glitchTime, glitchVerb, glitchVoltages, glitchstart, glitchstarttime, halt, infostring, loadsymbols, lock, mon_connected, monitor_info, monitor_list_apps, monitor_ram_depth, monitor_ram_pattern, monitorclocking, monitorecho, monitorgetclock, monitorsetclock, monitortest, name2adr, out, peek16, peek32, peek8, peekblock, peekbysym, picROMclock, picROMfastclock, poke16, pokeblock, pokebysym, pokebyte, pyserInit, readbyte, readcmd, readpicROM, resume, serClose, serInit, setBaud, setsecret, silent, start, telosBReset, telosI2CStart, telosI2CStop, telosI2CWriteBit, telosI2CWriteByte, telosI2CWriteCmd, telosSetSCL, telosSetSDA, test, testleds, timeout, writecmd, writepicROM

Class Variables [hide private]
  CCSPIAPP = 81
  CCversions = {9021: 'CC2420'}
  lastpacket = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14...
  packetlen = 16
  maclen = 5

Inherited from GoodFET.GoodFET: GLITCHAPP, MONITORAPP, app, baudrates, besilent, connected, count, data, symbols, verb, verbose

Method Details [hide private]

setup(self)

source code 

Move the FET into the CCSPI application.

Overrides: GoodFET.GoodFET.setup

peek(self, reg, bytes=2)

source code 

Read a CCSPI Register. For long regs, result is flipped.

Overrides: GoodFET.GoodFET.peek

status(self)

source code 

Read the status byte.

Overrides: GoodFET.GoodFET.status

RF_setsync(self, sync=42767)

source code 

Set the SYNC preamble. Use 0xA70F for 0xA7.

RF_rxpacket(self)

source code 

Get a packet from the radio. Returns None if none is waiting.

RF_rxpacketrepeat(self)

source code 

Gets packets from the radio, ignoring all future requests so as not to waste time. Call RF_rxpacket() after this.

RF_rxpacketdec(self)

source code 

Get and decrypt a packet from the radio. Returns None if none is waiting.


Class Variable Details [hide private]

lastpacket

Value:
[0,
 1,
 2,
 3,
 4,
 5,
 6,
 7,
...