avrora.sim.mcu
Class SPI
java.lang.Object
avrora.sim.mcu.AtmelInternalDevice
avrora.sim.mcu.SPI
- All Implemented Interfaces:
- InterruptTable.Notification, SPIDevice
- public class SPI
- extends AtmelInternalDevice
- implements SPIDevice, InterruptTable.Notification
Serial Peripheral Interface. Used on the Mica2 platform for radio communication.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
period
protected int period
ZERO_FRAME
public static final SPI.Frame ZERO_FRAME
FF_FRAME
public static final SPI.Frame FF_FRAME
SPI
public SPI(AtmelMicrocontroller m)
newFrame
public static SPI.Frame newFrame(byte data)
connect
public void connect(SPIDevice d)
- Description copied from interface:
SPIDevice
- The
connect() method connects this SPI device to the specified SPIDevice.
- Specified by:
connect in interface SPIDevice
- Parameters:
d - the device to connect to.
receiveFrame
public void receiveFrame(SPI.Frame frame)
- Description copied from interface:
SPIDevice
- Receive a frame.
- Specified by:
receiveFrame in interface SPIDevice
- Parameters:
frame - the frame to be received
transmitFrame
public SPI.Frame transmitFrame()
- Description copied from interface:
SPIDevice
- Transmit a frame from this device.
- Specified by:
transmitFrame in interface SPIDevice
- Returns:
- the frame for transmission
force
public void force(int inum)
- Specified by:
force in interface InterruptTable.Notification
invoke
public void invoke(int inum)
- Specified by:
invoke in interface InterruptTable.Notification