Knopflerfish OSGi 3.0.0

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 $

Field Summary
static int MATCH_CLASS
           
static int MATCH_GENERIC
           
static int MATCH_VENDOR_PRODUCT
           
static int MATCH_VENDOR_PRODUCT_REVISION
           
 
Fields inherited from interface org.osgi.service.device.Device
MATCH_NONE
 
Method Summary
 javax.comm.SerialPort allocateSerialPort()
          Get the serial port connected to this device.
 void releaseSerialPort()
          Release the allocated serial port.
 
Methods inherited from interface org.osgi.service.device.Device
noDriverFound
 

Field Detail

MATCH_VENDOR_PRODUCT_REVISION

static final int MATCH_VENDOR_PRODUCT_REVISION
See Also:
Constant Field Values

MATCH_VENDOR_PRODUCT

static final int MATCH_VENDOR_PRODUCT
See Also:
Constant Field Values

MATCH_CLASS

static final int MATCH_CLASS
See Also:
Constant Field Values

MATCH_GENERIC

static final int MATCH_GENERIC
See Also:
Constant Field Values
Method Detail

allocateSerialPort

javax.comm.SerialPort allocateSerialPort()
Get the serial port connected to this device. Caller is responsible for calling releaseSerialPort when done.

Returns:
SerialPort object.

releaseSerialPort

void releaseSerialPort()
Release the allocated serial port.


Knopflerfish OSGi 3.0.0