|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.radio.CC1000Radio.ATMegaController
A CC1000 Controller class for the ATMega microcontroller family. Installing an ATMega128 into this class connects the microcontroller to this radio. Data is communicated over the SPI interface, on which the CC1000 is the master. RSSI data from the CC1000 is available to the ATMega128 though the ADC (analog to digital converter).
Nested Class Summary | |
protected class |
CC1000Radio.ATMegaController.Transmit
Transmit is an event that transmits a packet of data after a one bit period delay. |
Method Summary | |
void |
connect(SPIDevice d)
The connect() method connects this SPI device to the specified SPIDevice. |
void |
disable()
Disable transfers. |
void |
enable()
Enable transfers. |
int |
getLevel()
Report the current voltage level of the input. |
void |
install(Microcontroller mcu)
Installs this Controller into a microcontroller. |
void |
receiveFrame(SPI.Frame frame)
receiveFrame receives an SPIFrame from a connected device. |
SPI.Frame |
transmitFrame()
Transmits an SPIFrame to be received by the connected device. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void enable()
Radio.RadioController
enable
in interface Radio.RadioController
public void disable()
Radio.RadioController
disable
in interface Radio.RadioController
public void receiveFrame(SPI.Frame frame)
receiveFrame
receives an SPIFrame
from a connected device. If the radio
is in a transmission state, this should be the next frame sent into the air.
receiveFrame
in interface SPIDevice
frame
- the frame to be receivedpublic SPI.Frame transmitFrame()
SPIFrame
to be received by the connected device. This frame is either the
last byte of data received or a zero byte.
transmitFrame
in interface SPIDevice
public void connect(SPIDevice d)
SPIDevice
connect()
method connects this SPI device to the specified SPIDevice.
connect
in interface SPIDevice
d
- the device to connect to.public int getLevel()
ADC.ADCInput
getLevel
in interface ADC.ADCInput
public void install(Microcontroller mcu)
Radio.RadioController
install
in interface Radio.RadioController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |