avrora.sim.mcu
Interface USART.USARTDevice

All Known Implementing Classes:
LCDScreen, SerialForwarder, USART.SerialPrinter
Enclosing interface:
USART

public static interface USART.USARTDevice

The USARTDevice interface describes USARTs and other serial devices which can be connected to the USART. For simplicity, a higher-level interface communicating by frames of data is used, rather than bits or a representation of changing voltages.


Method Summary
 void receiveFrame(USART.Frame frame)
          Receive a frame.
 USART.Frame transmitFrame()
          Transmit a frame from this device.
 

Method Detail

transmitFrame

public USART.Frame transmitFrame()
Transmit a frame from this device.

Returns:
the frame for transmission

receiveFrame

public void receiveFrame(USART.Frame frame)
Receive a frame.

Parameters:
frame - the frame to be received