public abstract class CommonNPortDriver extends java.lang.Object implements MxNPort, java.util.Comparator<java.lang.Integer>
MxNPort.FlowCtrl, MxNPort.IoctlMode, MxNPort.LineError, MxNPort.ModemStatus
CTS_FLOW_ENABLE, CTS_OFF, CTS_ON, DATA_BITS_5, DATA_BITS_6, DATA_BITS_7, DATA_BITS_8, DCD_OFF, DCD_ON, DSR_FLOW_ENABLE, DSR_OFF, DSR_ON, DTR_FLOW_ENABLE, DTR_OFF, DTR_ON, DTRDSR_FLOW_ENABLE, DTRDSR_FLOW_MASK, FLUSH_INPUT, FLUSH_OUTPUT, LINE_ERROR, LINE_NO_ERROR, PARITY_EVEN, PARITY_MARK, PARITY_NONE, PARITY_ODD, PARITY_SPACE, RI_OFF, RI_ON, RTS_FLOW_ENABLE, RTS_OFF, RTS_ON, RTSCTS_FLOW_ENABLE, RTSCTS_FLOW_MASK, STOP_BITS_1, STOP_BITS_1_5, STOP_BITS_2, XOFF_FLOW_ENABLE, XON_FLOW_ENABLE, XONXOFF_FLOW_ENABLE, XONXOFF_FLOW_MASK
Constructor and Description |
---|
CommonNPortDriver() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Integer o1,
java.lang.Integer o2) |
abstract int |
write(byte[] buffer)
Puts a block of data to the driver's output buffer.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush, getBaud, getFlowCtrl, getIoctlMode, getLineStatus, getModemStatus, getNPortIPAddress, getNPortMACAddress, getNPortMaximumPort, getNPortModelName, getNPortPortIndex, getOQueue, open, read, read, read, setBaud, setBreak, setDTR, setFlowCtrl, setIoctlMode, setRTS, write, write
public int compare(java.lang.Integer o1, java.lang.Integer o2)
compare
in interface java.util.Comparator<java.lang.Integer>
public abstract int write(byte[] buffer) throws MxException
MxNPort
write
in interface MxNPort
buffer
- [in] The buffer contains all data to send.MxException
- If an error occurs.