|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Microcontroller interface corresponds to a hardware device that implements the AVR
instruction set. This interface contains methods that get commonly needed information about the particular
hardware device and and can load programs onto this virtual device.
| Nested Class Summary | |
static interface |
Microcontroller.Pin
The Pin interface encapsulates the notion of a physical pin on the microcontroller chip.
|
| Method Summary | |
byte |
getMode()
get the current mode of the mcu |
java.lang.String |
getModeName()
get the name of the current mode |
Microcontroller.Pin |
getPin(int num)
The getPin() method looks up the specified pin by its number and returns a reference to
that pin. |
Microcontroller.Pin |
getPin(java.lang.String name)
The getPin() method looks up the named pin and returns a reference to that pin. |
Radio |
getRadio()
|
Simulator |
getSimulator()
The getSimulator() method gets a simulator instance that is capable of emulating this
hardware device. |
void |
setRadio(Radio r)
|
void |
sleep()
send to mcu to sleep |
int |
wakeup()
wake the mcu up |
| Methods inherited from interface avrora.sim.mcu.MicrocontrollerProperties |
cyclesToMillis, getEEPromSize, getFlashSize, getHz, getIORegSize, getPinNumber, getRamSize, isSupported, millisToCycles |
| Method Detail |
public Simulator getSimulator()
getSimulator() method gets a simulator instance that is capable of emulating this
hardware device.
Simulator instance corresponding to this devicepublic Microcontroller.Pin getPin(java.lang.String name)
getPin() method looks up the named pin and returns a reference to that pin. Names of
pins should be UPPERCASE. The intended users of this method are external device implementors which
connect their devices to the microcontroller through the pins.
name - the name of the pin; for example "PA0" or "OC1A"
Pin object corresponding to the named pin if it exists; null
otherwisepublic Microcontroller.Pin getPin(int num)
getPin() method looks up the specified pin by its number and returns a reference to
that pin. The intended users of this method are external device implementors which connect their
devices to the microcontroller through the pins.
num - the pin number to look up
Pin object corresponding to the named pin if it exists; null
otherwisepublic void setRadio(Radio r)
public Radio getRadio()
public void sleep()
public int wakeup()
public byte getMode()
public java.lang.String getModeName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||