org.knopflerfish.service.serial
Interface SerialPortDevice
- All Superinterfaces:
- Device
- public interface SerialPortDevice
- extends Device
Service wrapping a javax.comm.SerialPort and enabling
it to participate in DeviceManager match()/attach() process.
- Version:
- $Revision: 1.2 $
MATCH_VENDOR_PRODUCT_REVISION
public static final int MATCH_VENDOR_PRODUCT_REVISION
- See Also:
- Constant Field Values
MATCH_VENDOR_PRODUCT
public static final int MATCH_VENDOR_PRODUCT
- See Also:
- Constant Field Values
MATCH_CLASS
public static final int MATCH_CLASS
- See Also:
- Constant Field Values
MATCH_GENERIC
public static final int MATCH_GENERIC
- See Also:
- Constant Field Values
allocateSerialPort
public javax.comm.SerialPort allocateSerialPort()
- Get the serial port connected to this device.
Caller is responsible for calling releaseSerialPort
when done.
- Returns:
- SerialPort object.
releaseSerialPort
public void releaseSerialPort()
- Release the allocated serial port.