|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectavrora.sim.radio.CC1000Radio
The CC1000Radio
class is a simulation of the CC1000 radio for use with avrora. The CC1000
radio is used with the Mica2 platform in the real world. Verbose printers for this class include
"sim.cc1000", "sim.cc1000.data", "sim.cc1000.pinconfig".
Nested Class Summary | |
class |
CC1000Radio.ATMega128LController
A CC1000 Controller class for the ATMega128L microcontroller cpu. |
protected class |
CC1000Radio.CALRegister
|
protected class |
CC1000Radio.CurrentRegister
The CurrentRegister controls various currents running through the CC1000 wiring. |
protected class |
CC1000Radio.DummyRegister
The DummyRegister is a filler class for registers within the 7-bit address space of the
radio registers, but do not actually exist/do anything in the real radio. |
protected class |
CC1000Radio.FrequencyRegister
A frequency register on the CC1000. |
protected class |
CC1000Radio.FrequencySeparationRegister
The frequency separation register on the CC1000. |
protected class |
CC1000Radio.FrontEndRegister
|
protected class |
CC1000Radio.FSCTRLRegister
|
protected class |
CC1000Radio.LockRegister
|
protected class |
CC1000Radio.MainRegister
The main register on the CC1000. |
protected class |
CC1000Radio.MatchRegister
|
protected class |
CC1000Radio.Modem0Register
The baud rate of the system is determined by values on the MODEM0 register. |
protected class |
CC1000Radio.Modem1Register
|
protected class |
CC1000Radio.Modem2Register
|
protected class |
CC1000Radio.PA_POWRegister
|
protected class |
CC1000Radio.PLLRegister
|
protected class |
CC1000Radio.PrescalerRegister
|
protected class |
CC1000Radio.RadioRegister
The RadioRegister is an abstract register grouping together registers on the CC1000
radio. |
protected class |
CC1000Radio.Receiver
TODO: determine if I will really need this for anything more than debugging. |
protected class |
CC1000Radio.SerialConfigurationInterface
Reads the three pins used in the three wire serial configuration interface. |
protected class |
CC1000Radio.Transmitter
This class is a state machine similar to Receiver , but for the transmitter on the radio.
|
Nested classes inherited from class avrora.sim.radio.Radio |
Radio.RadioController, Radio.RadioPacket |
Fields inherited from interface avrora.sim.radio.Radio |
TRANSFER_TIME |
Constructor Summary | |
CC1000Radio(Microcontroller mcu)
|
Method Summary | |
void |
activateLocalAir(Position pos)
activate positions |
RadioAir |
getAir()
|
double |
getFrequency()
get transission frequency |
LocalAir |
getLocalAir()
get local air |
int |
getPower()
get the transmission power |
Simulator |
getSimulator()
Get the Simulator on which this radio is running. |
SimulatorThread |
getSimulatorThread()
Gets the SimulatorThread of this radio. |
void |
receive(Radio.RadioPacket packet)
Part of the Radio interface. |
void |
report()
The report() method is called after the simulation is complete. |
void |
setSimulatorThread(SimulatorThread thread)
Sets the SimulatorThread of this radio. |
void |
transmit(Radio.RadioPacket packet)
Transmit a packet of data into the RadioAir . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CC1000Radio.RadioRegister[] registers
public static final int MAIN
public static final int FREQ_2A
public static final int FREQ_1A
public static final int FREQ_0A
public static final int FREQ_2B
public static final int FREQ_1B
public static final int FREQ_0B
public static final int FSEP1
public static final int FSEP0
public static final int CURRENT
public static final int FRONT_END
public static final int PA_POW
public static final int PLL
public static final int LOCK
public static final int CAL
public static final int MODEM2
public static final int MODEM1
public static final int MODEM0
public static final int MATCH
public static final int FSCTRL
public static final int PRESCALER
public static final int TEST6
public static final int TEST5
public static final int TEST4
public static final int TEST3
public static final int TEST2
public static final int TEST1
public static final int TEST0
protected final CC1000Radio.MainRegister MAIN_reg
protected final CC1000Radio.FrequencyRegister FREQ_A_reg
protected final CC1000Radio.FrequencyRegister FREQ_B_reg
protected final CC1000Radio.FrequencySeparationRegister FSEP_reg
protected final CC1000Radio.CurrentRegister CURRENT_reg
protected final CC1000Radio.FrontEndRegister FRONT_END_reg
protected final CC1000Radio.PA_POWRegister PA_POW_reg
protected final CC1000Radio.PLLRegister PLL_reg
protected final CC1000Radio.LockRegister LOCK_reg
protected final CC1000Radio.CALRegister CAL_reg
protected final CC1000Radio.Modem2Register MODEM_2_reg
protected final CC1000Radio.Modem1Register MODEM_1_reg
protected final CC1000Radio.Modem0Register MODEM_0_reg
protected final CC1000Radio.MatchRegister MATCH_reg
protected final CC1000Radio.FSCTRLRegister FSCTRL_reg
protected final CC1000Radio.PrescalerRegister PRESCALER_reg
protected final Simulator.Printer radioPrinter
protected final CC1000Radio.Receiver receiver
protected final CC1000Radio.Transmitter transmitter
protected final Microcontroller mcu
protected final Simulator sim
protected SimulatorThread simThread
protected RadioAir air
Constructor Detail |
public CC1000Radio(Microcontroller mcu)
Method Detail |
public void setSimulatorThread(SimulatorThread thread)
SimulatorThread
of this radio. Should be done BEFORE adding this radio to a
RadioAir
environment.
setSimulatorThread
in interface Radio
public SimulatorThread getSimulatorThread()
SimulatorThread
of this radio.
getSimulatorThread
in interface Radio
public void receive(Radio.RadioPacket packet)
Radio
interface. It should be called by the RadioAir
that this
radio is transmitting over when data is to be received.
receive
in interface Radio
public void transmit(Radio.RadioPacket packet)
RadioAir
.
transmit
in interface Radio
public Simulator getSimulator()
Simulator
on which this radio is running.
getSimulator
in interface Radio
public int getPower()
getPower
in interface Radio
Radio.getPower()
public double getFrequency()
getFrequency
in interface Radio
Radio.getFrequency()
public LocalAir getLocalAir()
getLocalAir
in interface Radio
Radio.getLocalAir()
public void activateLocalAir(Position pos)
activateLocalAir
in interface Radio
pos
- node positionRadio.activateLocalAir(avrora.sim.radio.freespace.Position)
public RadioAir getAir()
getAir
in interface Radio
public void report()
Monitor
report()
method is called after the simulation is complete. The monitor generates a
textual or other format representation of the information collected during the execution of the
program.
report
in interface Monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |