|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.comm.CommPort
|
+--javax.comm.SerialPort
|
+--com.dalsemi.comm.TINISerialPort
This class is is the actual serial port implementation used by javax.comm.SerialPort. It is recommended that you use javax.comm instead of this class unless your application needs to use a method that is implemented in this class and not in javax.comm.SerialPort.
| Fields inherited from class javax.comm.SerialPort |
DATABITS_5,
DATABITS_6,
DATABITS_7,
DATABITS_8,
FLOWCONTROL_NONE,
FLOWCONTROL_RTSCTS_IN,
FLOWCONTROL_RTSCTS_OUT,
FLOWCONTROL_XONXOFF_IN,
FLOWCONTROL_XONXOFF_OUT,
PARITY_EVEN,
PARITY_MARK,
PARITY_NONE,
PARITY_ODD,
PARITY_SPACE,
STOPBITS_1,
STOPBITS_1_5,
STOPBITS_2 |
| Fields inherited from class javax.comm.CommPort |
name |
| Constructor Summary | |
TINISerialPort(java.lang.String name)
Constructor - attempts to open the requested serial port |
|
| Method Summary | |
void |
addEventListener(javax.comm.SerialPortEventListener eventListener)
Adds a serial port event listener |
void |
close()
Closes the serial port |
void |
disableReceiveFraming()
Disables receive framing |
void |
disableReceiveThreshold()
Disables receive threshold |
void |
disableReceiveTimeout()
Disables receive timeout |
void |
enableReceiveFraming(int framingByte)
Enables receive framing |
void |
enableReceiveThreshold(int thresh)
Enables receive threshold |
void |
enableReceiveTimeout(int rcvTimeout)
Enables receive timeout |
int |
getBaudRate()
Returns the baud rate in bps |
boolean |
getCD()
Returns the current state of CD |
boolean |
getCTS()
Returns the current state of CTS |
int |
getDataBits()
Returns current the data bit (word size) setting |
boolean |
getDSR()
Returns the current state of DSR |
boolean |
getDTR()
Returns the current state of DTR |
int |
getFlowControlMode()
Returns the current flow control mode |
int |
getInputBufferSize()
Returns the input buffer size |
java.io.InputStream |
getInputStream()
Returns the serial port input stream |
int |
getOutputBufferSize()
Returns the current output buffer size |
java.io.OutputStream |
getOutputStream()
Returns the serial port output stream |
int |
getParity()
Returns the current parity setting |
int |
getReceiveFramingByte()
Returns the receive framing byte |
int |
getReceiveThreshold()
Returns the threshold |
int |
getReceiveTimeout()
Returns the current timeout |
boolean |
getRI()
Same as getDTR |
boolean |
getRI()
Same as getDTR |
boolean |
getRTS()
Returns the current state of RTS |
int |
getStopBits()
Returns the current stop bits setting |
boolean |
isCD()
Same as getCD |
boolean |
isCTS()
Same as getCTS |
boolean |
isDSR()
Same as getDSR |
boolean |
isDTR()
Same as getDTR |
boolean |
isReceiveFramingEnabled()
Returns the enable state |
boolean |
isReceiveThresholdEnabled()
Returns the enable state |
boolean |
isReceiveTimeoutEnabled()
Returns the enable state |
boolean |
isRTS()
Same as getRTS |
void |
notifyOnBreakInterrupt(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnCarrierDetect(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnCTS(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnDataAvailable(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnDSR(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnFramingError(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnOutputEmpty(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnOverrunError(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnParityError(boolean enable)
Indicates the desire to be notified on this type of event |
void |
notifyOnRingIndicator(boolean enable)
Indicates the desire to be notified on this type of event |
void |
removeEventListener()
Removes an event listener |
void |
sendBreak(int millis)
sends a break |
void |
setBaudRate(int baudRate)
Sets the baud rate |
void |
setBitParameters(int dataBits,
int stopBits,
int parity)
Sets the serial port bit parameters |
void |
setDivisor(int divisor)
Sets the baud rate divisor on the 16552 |
void |
setDTR(boolean dtr)
Sets DTR if dtr is true or clears DTR if false |
void |
setFlowControlMode(int flowcontrol)
Sets flow control |
void |
setInputBufferSize(int size)
Sets the input buffer size |
void |
setOutputBufferSize(int size)
Sets the output buffer size |
void |
setRTS(boolean rts)
Sets DTR if dtr is true or clears DTR if false |
void |
setSerialPortParams(int baudRate,
int dataBits,
int stopBits,
int parity)
Sets serial port parameters |
| Methods inherited from class javax.comm.SerialPort |
isRI,
setRcvFifoTrigger |
| Methods inherited from class javax.comm.CommPort |
getName,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public TINISerialPort(java.lang.String name)
| Method Detail |
public void close()
public int getBaudRate()
public int getDataBits()
public int getStopBits()
public int getParity()
public void setBitParameters(int dataBits,
int stopBits,
int parity)
public void sendBreak(int millis)
public void setFlowControlMode(int flowcontrol)
throws javax.comm.UnsupportedCommOperationException
public int getFlowControlMode()
public void setSerialPortParams(int baudRate,
int dataBits,
int stopBits,
int parity)
throws javax.comm.UnsupportedCommOperationException
public void setDivisor(int divisor)
public void setBaudRate(int baudRate)
public void setDTR(boolean dtr)
public boolean isDTR()
public boolean getDTR()
public void setRTS(boolean rts)
public boolean isRTS()
public boolean getRTS()
public boolean isCTS()
public boolean getCTS()
public boolean isDSR()
public boolean getDSR()
public boolean getRI()
public boolean getRI()
public boolean isCD()
public boolean getCD()
public void addEventListener(javax.comm.SerialPortEventListener eventListener)
throws java.util.TooManyListenersException
public void removeEventListener()
public void notifyOnDataAvailable(boolean enable)
public void notifyOnOutputEmpty(boolean enable)
public void notifyOnCTS(boolean enable)
public void notifyOnDSR(boolean enable)
public void notifyOnRingIndicator(boolean enable)
public void notifyOnCarrierDetect(boolean enable)
public void notifyOnOverrunError(boolean enable)
public void notifyOnParityError(boolean enable)
public void notifyOnFramingError(boolean enable)
public void notifyOnBreakInterrupt(boolean enable)
public java.io.InputStream getInputStream()
throws java.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
public void enableReceiveThreshold(int thresh)
throws javax.comm.UnsupportedCommOperationException
public void disableReceiveThreshold()
public boolean isReceiveThresholdEnabled()
public int getReceiveThreshold()
public void enableReceiveTimeout(int rcvTimeout)
throws javax.comm.UnsupportedCommOperationException
public void disableReceiveTimeout()
public boolean isReceiveTimeoutEnabled()
public int getReceiveTimeout()
public void enableReceiveFraming(int framingByte)
throws javax.comm.UnsupportedCommOperationException
public void disableReceiveFraming()
public boolean isReceiveFramingEnabled()
public int getReceiveFramingByte()
public void setInputBufferSize(int size)
public int getInputBufferSize()
public void setOutputBufferSize(int size)
public int getOutputBufferSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||