public class SerialComVendorLib extends Object
Super class for all classes which implements vendor specific API to talk to their devices using the libraries provided by vendor. These libraries from vendor may be propriety or not.
| Modifier and Type | Field and Description |
|---|---|
static int |
VLIB_FTDI_D2XX
The value indicating proprietary D2XX software interface from Future Technology Devices
International Ltd.
|
static int |
VLIB_MCHP_SIMPLEIO
The value indicating 'SimpleIO' library from Microchip Technology Inc.
|
static int |
VLIB_SLABS_CP210XMANUFACTURING
The value indicating 'CP210xManufacturing' library from Silicon Laboratories, Inc.
|
static int |
VLIB_SLABS_CP210XRUNTIME
The value indicating 'CP210xRuntime' library from Silicon Laboratories, Inc.
|
static int |
VLIB_SLABS_USBXPRESS
The value indicating 'USBXpress' library from Silicon Laboratories, Inc.
|
| Constructor and Description |
|---|
SerialComVendorLib()
Allocates a new SerialComVendorLib object.
|
| Modifier and Type | Method and Description |
|---|---|
SerialComVendorLib |
getVendorLibInstance(int vendorLibIdentifier,
File libDirectory,
String vlibName,
int cpuArch,
int osType,
com.serialpundit.core.SerialComSystemProperty serialComSystemProperty)
Gives an instance of the class which implements API defined by vendor in their propriety library.
|
public static final int VLIB_FTDI_D2XX
The value indicating proprietary D2XX software interface from Future Technology Devices International Ltd.
public static final int VLIB_MCHP_SIMPLEIO
The value indicating 'SimpleIO' library from Microchip Technology Inc.
public static final int VLIB_SLABS_CP210XRUNTIME
The value indicating 'CP210xRuntime' library from Silicon Laboratories, Inc.
public static final int VLIB_SLABS_CP210XMANUFACTURING
The value indicating 'CP210xManufacturing' library from Silicon Laboratories, Inc.
public static final int VLIB_SLABS_USBXPRESS
The value indicating 'USBXpress' library from Silicon Laboratories, Inc.
public SerialComVendorLib()
Allocates a new SerialComVendorLib object.
public SerialComVendorLib getVendorLibInstance(int vendorLibIdentifier, File libDirectory, String vlibName, int cpuArch, int osType, com.serialpundit.core.SerialComSystemProperty serialComSystemProperty) throws com.serialpundit.core.SerialComException
Gives an instance of the class which implements API defined by vendor in their propriety library.
vendorLibIdentifier - one of the constant VLIB_XXXX_XXXX in SerialComVendorLib class.libDirectory - directory where vendor library is placed.vlibName - full name of the vendor library (for ex. libftd2xx.so.1.1.12).cpuArch - architecture of CPU this library is running on.osType - operating system this library is running on.serialComSystemProperty - instance of SerialComSystemProperty to get required java properties.com.serialpundit.core.SerialComException - if java system properties can not be is null, if any file system related issue
occurs, if invalid vendorLibIdentifier is passed.SecurityException - if java system properties can not be accessed or required files can not be accessed.UnsatisfiedLinkError - if loading/linking shared library fails.FileNotFoundException - if the vendor library file is not found.Copyright © 2017. All rights reserved.