|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedSerialPort
Interface for managed serial port.
| Method Summary | |
|---|---|
void |
close()
Closes port. |
boolean |
isOpen()
Checks if port is open. |
void |
open(int b,
int d,
int s,
int p,
SerialPortClient client)
Opens serial port (unless already open). |
boolean |
overflowOccured()
Checks if buffer overflow occurred. |
void |
sendBreak(int duration)
Sends break signal for certain duration. |
void |
setDTR(boolean set)
Sets DTR (data terminal ready) line. |
void |
setRTS(boolean set)
Sets RTS (ready to send) line. |
void |
write(byte[] b)
Writes (sends) array of bytes to port. |
void |
write(int b)
Writes (sends) 8-bit integer to port. |
| Method Detail |
|---|
void open(int b,
int d,
int s,
int p,
SerialPortClient client)
throws java.io.IOException
b - baudrated - number of data bitss - number of stop bitsp - parityclient -
java.io.IOException - - if open failsboolean isOpen()
void close()
throws java.io.IOException
java.io.IOException - if unable to perform close
void write(int b)
throws java.io.IOException
b - 8-bit integer
java.io.IOException - if unable to write
void write(byte[] b)
throws java.io.IOException
b - array of bytes
java.io.IOException - if unable to writeboolean overflowOccured()
void setDTR(boolean set)
throws java.io.IOException
set - true for asserting line
java.io.IOException - if unable to control line
void setRTS(boolean set)
throws java.io.IOException
set - true for asserting line
java.io.IOException - if unable to control line
void sendBreak(int duration)
throws java.io.IOException
duration - time in ms
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||