Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.platform
Class SerialForwarder

    java.lang.Object
      avrora.sim.platform.SerialForwarder

All Implemented Interfaces:
  USART.USARTDevice

public class SerialForwarder
extends java.lang.Object
implements USART.USARTDevice

The `SerialForwarder` class implements a serial forwarder that takes traffic to and from a socket and directs it into the UART chip of a simulated device.

Field Summary
`static int` | `BPS`
`protected int` | `portNumber`

Constructor Summary
`SerialForwarder(USART usart, int pn)`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### BPS

    public static final int BPS

See Also:
  Constant Field Values

### portNumber

    protected int portNumber

Constructor Detail

### SerialForwarder

    public SerialForwarder(USART usart,
                           int pn)

Method Detail

### transmitFrame

    public USART.Frame transmitFrame()

  Description copied from interface: `USART.USARTDevice`
  Transmit a frame from this device.

  Specified by:
    `transmitFrame` in interface `USART.USARTDevice`
  Returns:
    the frame for transmission

### receiveFrame

    public void receiveFrame(USART.Frame frame)

  Description copied from interface: `USART.USARTDevice`
  Receive a frame.

  Specified by:
    `receiveFrame` in interface `USART.USARTDevice`
  Parameters:
    `frame` - the frame to be received

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD