|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.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.RadioControllerpublic void disable()
Radio.RadioController
disable in interface Radio.RadioControllerpublic 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 SPIDeviceframe - 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 SPIDevicepublic void connect(SPIDevice d)
SPIDeviceconnect() method connects this SPI device to the specified SPIDevice.
connect in interface SPIDeviced - the device to connect to.public int getLevel()
ADC.ADCInput
getLevel in interface ADC.ADCInputpublic 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 | |||||||||