|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.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.ATMegaController
A CC1000 Controller class for the ATMega microcontroller family. |
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.RadioProbe, Radio.Transmission |
Fields inherited from interface avrora.sim.radio.Radio |
MAX_BIT_RATE, NODE_HZ, TRANSFER_TIME |
Constructor Summary | |
CC1000Radio(Microcontroller mcu,
long xfreq)
|
Method Summary | |
RadioAir |
getAir()
|
FiniteStateMachine |
getFiniteStateMachine()
The getFiniteStateMachine() method gets a reference to the finite state
machine that represents this radio's state. |
double |
getFrequency()
get transmission frequency |
int |
getPower()
get the transmission power |
Simulator |
getSimulator()
Get the Simulator on which this radio is running. |
void |
insertProbe(Radio.RadioProbe p)
The insertProbe() method inserts a probe into a radio. |
boolean |
isListening()
|
void |
removeProbe(Radio.RadioProbe p)
The removeProbe() method removes a probe on this radio. |
void |
setAir(RadioAir nair)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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 static final java.lang.String[] allModeNames
protected static final int[][] ttm
protected CC1000Radio.RadioRegister[] registers
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 avrora.sim.radio.CC1000Radio.ProbeList probes
protected final long xoscFrequency
protected CC1000Radio.FrequencyRegister currentFrequencyRegister
protected final Microcontroller mcu
protected final Simulator sim
protected final FiniteStateMachine stateMachine
protected Radio.RadioController controller
protected RadioAir air
Constructor Detail |
public CC1000Radio(Microcontroller mcu, long xfreq)
Method Detail |
public FiniteStateMachine getFiniteStateMachine()
getFiniteStateMachine()
method gets a reference to the finite state
machine that represents this radio's state. For example, there are states corresponding
to "on", "off", "transmitting", and "receiving". The state names and numbers will vary
by radio implementation. The FiniteStateMachine
instance allows the user
to instrument the state transitions in order to gather information during simulation.
getFiniteStateMachine
in interface Radio
public void insertProbe(Radio.RadioProbe p)
insertProbe()
method inserts a probe into a radio. The probe is then
notified when the radio changes power, frequency, baud rate, or transmits or receives
a byte.
insertProbe
in interface Radio
p
- the probe to insert on this radiopublic void removeProbe(Radio.RadioProbe p)
removeProbe()
method removes a probe on this radio.
removeProbe
in interface Radio
p
- the probe to remove from this radio instancepublic boolean isListening()
isListening
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 RadioAir getAir()
getAir
in interface Radio
public void setAir(RadioAir nair)
setAir
in interface Radio
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |