|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.platform.SerialForwarder
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 |
public static final int BPS
protected int portNumber
Constructor Detail |
public SerialForwarder(USART usart, int pn)
Method Detail |
public USART.Frame transmitFrame()
USART.USARTDevice
transmitFrame
in interface USART.USARTDevice
public void receiveFrame(USART.Frame frame)
USART.USARTDevice
receiveFrame
in interface USART.USARTDevice
frame
- the frame to be received
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |