|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSerialPortControl
Class declaration
| Constructor Summary | |
SerialPortControl(javax.comm.CommPortIdentifier commPort)
Constructor declaration |
|
| Method Summary | |
void |
clearStream()
This clears the input serial port input stream. |
byte[] |
getResponsePacket()
This returns the response packet from the OCU to you. |
void |
run()
Method declaration |
void |
sendCommand(byte[] packet)
Sends a packet of bytes over a serial port. |
void |
serialEvent(javax.comm.SerialPortEvent event)
Method declaration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerialPortControl(javax.comm.CommPortIdentifier commPort)
commPort - A commPort object. This specifies what comm port you will use. See the JavaDoc for the commAPI for details on the commPort object.| Method Detail |
public void run()
run in interface java.lang.Runnablepublic void serialEvent(javax.comm.SerialPortEvent event)
serialEvent in interface javax.comm.SerialPortEventListenerevent - A serial port eventthe JavaDoc for the Java CommAPIpublic void sendCommand(byte[] packet)
packet - This is the command packet to be sent to the VGTV OCU.public byte[] getResponsePacket()
public void clearStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||