public final class SerialComSLabsCP210xManufacturing extends SerialComVendorLib
Silicon labs provides libraries to communicate with their USB-UART devices. More information can be found here : https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
[0] The data types used in java layer may be bigger in size than the native layer. For example; if native function returns 16 bit signed integer, than java method will return 32 bit integer. This is done to make sure that no data loss occur. This library take care of sign and their applicability internally.
[1] Developers are requested to check with vendor library documentation if a particular function is supported for desired platform or not and also how does a particular API will behave. Also consider paying attention to valid values and range when passing arguments to a method.
[2] The application note for CP210xManufacturing library is here : http://www.silabs.com/Support%20Documents/TechnicalDocs/AN721.pdf
[3] It seems like CP210xManufacturing library uses user space drivers. So if you encounter any problems with permissions add the following udev rules file at appropriate location in your system : https://github.com/RishiGupta12/serial-communication-manager/blob/master/tools-and-utilities/99-scm-cp210x.rules
[4] The udev rules to support various applications designs are here : https://github.com/RishiGupta12/serial-communication-manager/blob/master/tools-and-utilities/99-scm-extra-udev.rules
Silicon labs softwares can be downloaded from here : http://www.silabs.com/products/Interface/Pages/interface-application-notes.aspx
SCM version 1.0.4 is linked to v6.2.0.0 version of CP210xManufacturing library (libcp210xmanufacturing.so, CP210xManufacturing.dll).
| Modifier and Type | Field and Description |
|---|---|
static int |
CP2105_EF_RS485_INVERT
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly
for CP2105 devices.
|
static int |
CP2105_EF_WEAKPULLUP
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for
CP2105 devices.
|
static int |
CP210x_RETURN_DESCRIPTION
Constant representing one of the flag to be used with getProductString() method.
|
static int |
CP210x_RETURN_FULL_PATH
Constant representing one of the flag to be used with getProductString() method.
|
static int |
CP210x_RETURN_SERIAL_NUMBER
Constant representing one of the flag to be used with getProductString() method.
|
static int |
EF_DEVICE_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2108
devices.
|
static int |
EF_DEVICE_WEAKPULLUP_RESET
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2108
devices.
|
static int |
EF_DEVICE_WEAKPULLUP_SUSPEND
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2108
devices.
|
static int |
EF_DYNAMIC_SUSPEND_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly
for CP2105 devices.
|
static int |
EF_DYNAMIC_SUSPEND_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly
for CP2105 devices.
|
static int |
EF_GPIO_0_TXLED
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_GPIO_0_TXLED_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly
for CP2105 devices.
|
static int |
EF_GPIO_0_TXLED_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly
for CP2105 devices.
|
static int |
EF_GPIO_1_RS485_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly
for CP2105 devices.
|
static int |
EF_GPIO_1_RXLED
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_GPIO_1_RXLED_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly
for CP2105 devices.
|
static int |
EF_GPIO_1_RXLED_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly
for CP2105 devices.
|
static int |
EF_GPIO_2_RS485
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_GPIO_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_IFC_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108
devices.
|
static int |
EF_IFC_GPIO_CLOCK
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108
devices.
|
static int |
EF_IFC_GPIO_RS485
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108
devices.
|
static int |
EF_IFC_GPIO_RS485_LOGIC
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108
devices.
|
static int |
EF_IFC_GPIO_RXLED
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108
devices.
|
static int |
EF_IFC_GPIO_TXLED
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108
devices.
|
static int |
EF_INVERT_SUSPEND_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly
for CP2105 devices.
|
static int |
EF_INVERT_SUSPEND_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly
for CP2105 devices.
|
static int |
EF_RESERVED_1
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_RS485_INVERT
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_SERIAL_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
EF_WEAKPULLUP
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for
CP2103/4 devices.
|
static int |
FC_CLOSE_RX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
|
static int |
FC_CLOSE_RX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_CLOSE_RX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_RX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_RX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_RX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_RX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_CLOSE_TX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
|
static int |
FC_CLOSE_TX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_CLOSE_TX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_TX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_TX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_TX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_CLOSE_TX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_OPEN_RX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
|
static int |
FC_OPEN_RX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_OPEN_RX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_RX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_RX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_RX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_RX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_OPEN_TX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
|
static int |
FC_OPEN_TX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
FC_OPEN_TX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_TX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_TX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_TX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2108 devices.
|
static int |
FC_OPEN_TX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method
mainly for CP2105 devices.
|
static int |
PB0_PORT_CTS0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_CTS1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_DCD0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_DCD1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_DSR0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_DSR1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_DTR0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_DTR1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_RI0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_RI1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_RTS0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_RTS1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_RX0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_RX1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_TX0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB0_PORT_TX1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_10
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_11
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_12
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_13
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_14
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_15
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_4
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_5
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_6
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_7
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_8
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB1_PORT_GPIO_9
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB2_PORT_DSR2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB2_PORT_DTR2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB2_PORT_SUSPEND
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB2_PORT_SUSPEND_BAR
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_CTS2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_DCD2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_DCD3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_DSR3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_DTR3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_RI2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_RI3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_RTS2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_RX2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB3_PORT_TX2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB4_PORT_CTS3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB4_PORT_RTS3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB4_PORT_RX3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PB4_PORT_TX3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2108 devices.
|
static int |
PORT_CTS_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_CTS_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_CTS_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_DCD_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_DCD_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_DCD_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_DSR_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_DSR_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_DSR_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_DTR_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_DTR_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_DTR_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_GPIO_0_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_GPIO_0_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_GPIO_0_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_GPIO_1_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_GPIO_1_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_GPIO_1_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_GPIO_2_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_GPIO_2_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_GPIO_3_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_RI_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_RI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_RI_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_RTS_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_RTS_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_RTS_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_RXD_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_RXD_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_RXD_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_SUSPEND_BAR_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_SUSPEND_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_SUSPEND_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_SUSPEND_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_TXD_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
static int |
PORT_TXD_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2103/4 devices.
|
static int |
PORT_TXD_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to
be used mainly for CP2105 devices.
|
VLIB_FTDI_D2XX, VLIB_MCHP_SIMPLEIO, VLIB_SLABS_CP210XMANUFACTURING, VLIB_SLABS_CP210XRUNTIME, VLIB_SLABS_USBXPRESS| Constructor and Description |
|---|
SerialComSLabsCP210xManufacturing(File libDirectory,
String vlibName,
int cpuArch,
int osType,
SerialComSystemProperty serialComSystemProperty)
Allocates a new SerialComSLabsCP210xManufacturing object and extract and load shared libraries as
required.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
close(long handle)
Executes CP210x_Close function of of CP210xManufacturing library.
|
boolean |
createHexFile(long handle,
String fileName)
Executes CP210x_CreateHexFile function of CP210xManufacturing library.
|
CP210XbaudConfigs[] |
getBaudRateConfig(long handle)
Executes CP210x_GetBaudRateConfig function of CP210xManufacturing library.
|
String |
getDeviceInterfaceString(long handle,
byte bInterfaceNumber)
Executes CP210x_GetDeviceInterfaceString function of CP210xManufacturing library.
|
String |
getDeviceManufacturerString(long handle)
Executes CP210x_GetDeviceManufacturerString function of CP210xManufacturing library.
|
byte[] |
getDeviceMode(long handle)
Executes CP210x_GetDeviceMode function of CP210xManufacturing library.
|
int |
getDevicePid(long handle)
Executes CP210x_GetDevicePid function of CP210xManufacturing library.
|
String |
getDeviceProductString(long handle)
Executes CP210x_GetDeviceProductString function of CP210xManufacturing library.
|
String |
getDeviceSerialNumber(long handle)
Executes CP210x_GetDeviceSerialNumber function of CP210xManufacturing library.
|
int |
getDeviceVersion(long handle)
Executes CP210x_GetDeviceVersion function of CP210xManufacturing library.
|
int |
getDeviceVid(long handle)
Executes CP210x_GetDeviceVid function of CP210xManufacturing library.
|
int[] |
getDualPortConfig(long handle)
Executes CP210xGetDualPortConfig function of CP210xManufacturing library.
|
short |
getFlushBufferConfig(long handle)
Executes CP210x_GetFlushBufferConfig function of CP210xManufacturing library.
|
byte |
getLockValue(long handle)
Executes CP210x_GetLockValue function of CP210xManufacturing library.
|
byte |
getMaxPower(long handle)
Executes CP210x_GetMaxPower function of CP210xManufacturing library.
|
int |
getNumDevices()
Executes CP210x_GetNumDevices function of CP210xManufacturing library.
|
String |
getPartNumber(long handle)
Executes CP210x_GetPartNumber function of CP210xManufacturing library.
|
int[] |
getPortConfig(long handle)
Executes CP210x_GetPortConfig function of CP210xManufacturing library.
|
String |
getProductString(int index,
int flag)
Executes CP210x_GetProductString function of CP210xManufacturing library.
|
int[] |
getQuadPortConfig(long handle)
Executes CP210x_GetQuadPortConfig function of CP210xManufacturing library.
|
boolean |
getSelfPower(long handle)
Executes CP210x_GetSelfPower function of CP210xManufacturing library.
|
long |
open(int index)
Executes CP210x_Open function of of CP210xManufacturing library.
|
boolean |
reset(long handle)
Executes CP210x_Reset function of CP210xManufacturing library.
|
boolean |
setBaudRateConfig(long handle,
int baudGen,
int timer0Reload,
int prescalar,
int baudrate)
Executes CP210x_SetBaudRateConfig function of of CP210xManufacturing library.
|
boolean |
setDeviceMode(long handle,
byte bDeviceModeECI,
byte bDeviceModeSCI)
Executes CP210x_SetDeviceMode function of of CP210xManufacturing library.
|
boolean |
setDeviceVersion(long handle,
int version)
Executes CP210x_SetDeviceVersion function of of CP210xManufacturing library.
|
boolean |
setDualPortConfig(long handle,
int mode,
int resetLatch,
int suspendLatch,
int enhancedFxnECI,
int enhancedFxnSCI,
int enhancedFxnDevice)
Executes CP210x_SetDualPortConfig function of of CP210xManufacturing library.
|
boolean |
setFlushBufferConfig(long handle,
int flag)
Executes CP210x_SetFlushBufferConfig function of of CP210xManufacturing library.
|
boolean |
setInterfaceString(long handle,
byte bInterfaceNumber,
String interfaceString)
Executes CP210x_SetInterfaceString function of of CP210xManufacturing library.
|
boolean |
setLockValue(long handle)
Executes CP210x_SetLockValue function of of CP210xManufacturing library.
|
boolean |
setMaxPower(long handle,
byte maxPower)
Executes CP210x_SetMaxPower function of of CP210xManufacturing library.
|
boolean |
setPid(long handle,
int pid)
Executes CP210x_SetPid function of of CP210xManufacturing library.
|
boolean |
setPortConfig(long handle,
int mode,
int resetLatch,
int suspendLatch,
int enhancedFxn)
Executes CP210x_SetPortConfig function of of CP210xManufacturing library.
|
boolean |
setProductString(long handle,
String product)
Executes CP210x_SetProductString function of of CP210xManufacturing library.
|
boolean |
setQuadPortConfig(long handle,
int[] resetLatch,
int[] suspendLatch,
byte[] config)
Executes CP210x_SetDualPortConfig function of of CP210xManufacturing library.
|
boolean |
setSelfPower(long handle,
boolean selfPower)
Executes CP210x_SetSelfPower function of of CP210xManufacturing library.
|
boolean |
setSerialNumber(long handle,
String serialNumber)
Executes CP210x_SetSerialNumber function of of CP210xManufacturing library.
|
boolean |
setVid(long handle,
int vid)
Executes CP210x_SetVid function of of CP210xManufacturing library.
|
getVendorLibInstancepublic static final int CP210x_RETURN_SERIAL_NUMBER
Constant representing one of the flag to be used with getProductString() method.
public static final int CP210x_RETURN_DESCRIPTION
Constant representing one of the flag to be used with getProductString() method.
public static final int CP210x_RETURN_FULL_PATH
Constant representing one of the flag to be used with getProductString() method.
public static final int FC_OPEN_TX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
public static final int FC_OPEN_RX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
public static final int FC_CLOSE_TX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
public static final int FC_CLOSE_RX
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method.
public static final int FC_OPEN_TX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_OPEN_RX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_CLOSE_TX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_CLOSE_RX_SCI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_OPEN_TX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_OPEN_RX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_CLOSE_TX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_CLOSE_RX_ECI
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2105 devices.
public static final int FC_OPEN_TX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_RX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_TX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_RX_IFC0
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_TX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_RX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_TX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_RX_IFC1
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_TX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_RX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_TX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_RX_IFC2
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_TX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_OPEN_RX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_TX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int FC_CLOSE_RX_IFC3
Constant representing one of the bit in bit mask to be used with setFlushBufferConfig() method mainly for CP2108 devices.
public static final int PORT_RI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_DCD_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_DTR_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_DSR_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_TXD_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_RXD_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_RTS_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_CTS_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_GPIO_0_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_GPIO_1_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_GPIO_2_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_GPIO_3_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_SUSPEND_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int PORT_SUSPEND_BAR_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2103/4 devices.
public static final int EF_GPIO_0_TXLED
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_GPIO_1_RXLED
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_GPIO_2_RS485
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_RS485_INVERT
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_WEAKPULLUP
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_RESERVED_1
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_SERIAL_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int EF_GPIO_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn features to be used mainly for CP2103/4 devices.
public static final int PORT_RI_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_DCD_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_DTR_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_DSR_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_TXD_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_RXD_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_RTS_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_CTS_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_GPIO_0_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_GPIO_1_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_GPIO_2_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_SUSPEND_SCI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_RI_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_DCD_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_DTR_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_DSR_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_TXD_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_RXD_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_RTS_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_CTS_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_GPIO_0_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_GPIO_1_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int PORT_SUSPEND_ECI_ON
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2105 devices.
public static final int EF_GPIO_0_TXLED_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly for CP2105 devices.
public static final int EF_GPIO_1_RXLED_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly for CP2105 devices.
public static final int EF_GPIO_1_RS485_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly for CP2105 devices.
public static final int CP2105_EF_RS485_INVERT
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly for CP2105 devices.
public static final int EF_INVERT_SUSPEND_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly for CP2105 devices.
public static final int EF_DYNAMIC_SUSPEND_ECI
Constant representing one of the bit locations for EnhancedFxn_ECI features to be used mainly for CP2105 devices.
public static final int EF_GPIO_0_TXLED_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly for CP2105 devices.
public static final int EF_GPIO_1_RXLED_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly for CP2105 devices.
public static final int EF_INVERT_SUSPEND_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly for CP2105 devices.
public static final int EF_DYNAMIC_SUSPEND_SCI
Constant representing one of the bit locations for EnhancedFxn_SCI features to be used mainly for CP2105 devices.
public static final int CP2105_EF_WEAKPULLUP
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2105 devices.
public static final int PB0_PORT_TX0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_RX0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_RTS0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_CTS0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_DTR0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_DSR0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_DCD0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_RI0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_TX1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_RX1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_RTS1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_CTS1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_DTR1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_DSR1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_DCD1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB0_PORT_RI1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_0
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_1
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_4
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_5
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_6
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_7
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_8
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_9
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_10
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_11
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_12
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_13
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_14
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB1_PORT_GPIO_15
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB2_PORT_SUSPEND
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB2_PORT_SUSPEND_BAR
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB2_PORT_DTR2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB2_PORT_DSR2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_TX2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_RX2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_RTS2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_CTS2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_DCD2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_RI2
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_DTR3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_DSR3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_DCD3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB3_PORT_RI3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB4_PORT_RTS3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB4_PORT_CTS3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB4_PORT_TX3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int PB4_PORT_RX3
Constant representing one of the bit locations for Mode/Latch for Reset and Suspend features to be used mainly for CP2108 devices.
public static final int EF_IFC_GPIO_TXLED
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108 devices.
public static final int EF_IFC_GPIO_RXLED
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108 devices.
public static final int EF_IFC_GPIO_RS485
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108 devices.
public static final int EF_IFC_GPIO_RS485_LOGIC
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108 devices.
public static final int EF_IFC_GPIO_CLOCK
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108 devices.
public static final int EF_IFC_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn_IFCx to be used mainly for CP2108 devices.
public static final int EF_DEVICE_WEAKPULLUP_RESET
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2108 devices.
public static final int EF_DEVICE_WEAKPULLUP_SUSPEND
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2108 devices.
public static final int EF_DEVICE_DYNAMIC_SUSPEND
Constant representing one of the bit locations for EnhancedFxn_Device to be used mainly for CP2108 devices.
public SerialComSLabsCP210xManufacturing(File libDirectory, String vlibName, int cpuArch, int osType, SerialComSystemProperty serialComSystemProperty) throws UnsatisfiedLinkError, SerialComLoadException, SerialComUnexpectedException, SecurityException, FileNotFoundException
Allocates a new SerialComSLabsCP210xManufacturing object and extract and load shared libraries as required.
libDirectory - directory in which native library will be extracted and vendor library will be found.vlibName - name of vendor library to load and link.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.SerialComUnexpectedException - if a critical java system property is null in system.SecurityException - if any java system property can not be accessed.FileNotFoundException - if the vendor library file is not found.SerialComLoadException - if any file system related issue occurs.UnsatisfiedLinkError - if loading/linking shared library fails.SerialComException - if initializing native library fails.public int getNumDevices()
throws SerialComException
Executes CP210x_GetNumDevices function of CP210xManufacturing library.
Returns the number of CP210x devices connected to the host.
SerialComException - if an I/O error occurs.public String getProductString(int index, int flag) throws SerialComException
Executes CP210x_GetProductString function of CP210xManufacturing library.
Returns product description, serial number or full path based on flag passed.
The argument flag can be one of the constant CP210x_RETURN_SERIAL_NUMBER, CP210x_RETURN_DESCRIPTION or CP210x_RETURN_FULL_PATH.
index - index of device in list.flag - indicates which property is to be fetched.SerialComException - if an I/O error occurs.IllegalArgumentException - if invalid flag is passed.public long open(int index)
throws SerialComException
Executes CP210x_Open function of of CP210xManufacturing library.
Open the device and return a handle which will be used for subsequent accesses.
index - of the device that needs to be opened.SerialComException - if an I/O error occurs.IllegalArgumentException - if index is negative.public boolean close(long handle)
throws SerialComException
Executes CP210x_Close function of of CP210xManufacturing library.
Closes an opened cp210x device.
handle - of the device that is to be close.SerialComException - if an I/O error occurs.public String getPartNumber(long handle) throws SerialComException
Executes CP210x_GetPartNumber function of CP210xManufacturing library.
Returns the part number associated with the given handle.
SerialComException - if an I/O error occurs.public boolean setVid(long handle,
int vid)
throws SerialComException
Executes CP210x_SetVid function of of CP210xManufacturing library.
Sets the 2-byte Vendor ID field of the Device Descriptor of a CP210x device.
handle - of the device.vid - 16 bit Vendor ID.SerialComException - if an I/O error occurs.public boolean setPid(long handle,
int pid)
throws SerialComException
Executes CP210x_SetPid function of of CP210xManufacturing library.
Sets the 2-byte Product ID field of the Device Descriptor of a CP210x device.
handle - of the device.pid - 16 bit Product ID.SerialComException - if an I/O error occurs.public boolean setProductString(long handle,
String product)
throws SerialComException
Executes CP210x_SetProductString function of of CP210xManufacturing library.
Sets the Product Description String of the String Descriptor of a CP210x device.
handle - of the device.product - string that need to be saved in device.SerialComException - if an I/O error occurs.public boolean setSerialNumber(long handle,
String serialNumber)
throws SerialComException
Executes CP210x_SetSerialNumber function of of CP210xManufacturing library.
Sets the Serial Number String of the String Descriptor of a CP210x device.
handle - of the device.serialNumber - string that need to be saved in device.SerialComException - if an I/O error occurs.public boolean setInterfaceString(long handle,
byte bInterfaceNumber,
String interfaceString)
throws SerialComException
Executes CP210x_SetInterfaceString function of of CP210xManufacturing library.
Sets the Serial Number String of the String Descriptor of a CP210x device.
handle - of the device.bInterfaceNumber - Set to 0 for Enhanced Interface String, or 1 for Standard Interface String
on the CP2105. 0-3 for the CP2108 which has 4 interfaces.interfaceString - interface string to be set on device.SerialComException - if an I/O error occurs.public boolean setSelfPower(long handle,
boolean selfPower)
throws SerialComException
Executes CP210x_SetSelfPower function of of CP210xManufacturing library.
Sets or clears the Self-Powered bit of the Power Attributes field of the Configuration Descriptor of a CP210x device.
handle - of the device.selfPower - if true self power bit will be set, if false self power bit will be cleared.SerialComException - if an I/O error occurs.public boolean setMaxPower(long handle,
byte maxPower)
throws SerialComException
Executes CP210x_SetMaxPower function of of CP210xManufacturing library.
Sets the Max Power field of the Configuration Descriptor of a CP210x device.
handle - of the device.maxPower - 1-byte value representing the maximum power consumption of the CP210x USB device,
expressed in 2 mA units.SerialComException - if an I/O error occurs.public boolean setFlushBufferConfig(long handle,
int flag)
throws SerialComException
Executes CP210x_SetFlushBufferConfig function of of CP210xManufacturing library.
Sets the Flush Buffer configuration of a CP210x device.
The argument flag can be bit mask of constants FC_OPEN_TX, FC_OPEN_RX, FC_CLOSE_TX, FC_CLOSE_RX. For CP2105 bit mask should be FC_OPEN_TX_SCI, FC_OPEN_RX_SCI, FC_CLOSE_TX_SCI, FC_CLOSE_RX_SCI, or FC_OPEN_TX_ECI, FC_OPEN_RX_ECI, FC_CLOSE_TX_ECI, FC_CLOSE_RX_ECI. For CP2108 bit mask should be of FC_OPEN_TX_IFC0, FC_OPEN_RX_IFC0, FC_CLOSE_TX_IFC0, FC_CLOSE_RX_IFC0, FC_OPEN_TX_IFC1, FC_OPEN_RX_IFC1, FC_CLOSE_TX_IFC1, FC_CLOSE_RX_IFC1, FC_OPEN_TX_IFC2, FC_OPEN_RX_IFC2, FC_CLOSE_TX_IFC2, FC_CLOSE_RX_IFC2, FC_OPEN_TX_IFC3, FC_OPEN_RX_IFC3, FC_CLOSE_TX_IFC3, FC_CLOSE_RX_IFC3.
handle - of the device.flag - bit mask indicating which buffer to flush and upon which event.SerialComException - if an I/O error occurs.IllegalArgumentException - if invalid flag is passed.public boolean setDeviceMode(long handle,
byte bDeviceModeECI,
byte bDeviceModeSCI)
throws SerialComException
Executes CP210x_SetDeviceMode function of of CP210xManufacturing library.
Sets the operating mode (GPIO or Modem) or each Interface of a CP210x device.
Devices like CP2105 have more than one serial port (interface). Each serial port can be operated in two modes modem and GPIO respectively. This method can be used to set these modes.
handle - of the device.bDeviceModeECI - set to 0 for modem mode for Enhanced interface. Set to 1 for GPIO mode.bDeviceModeSCI - set to 0 for modem mode for Enhanced interface. Set to 1 for GPIO mode.SerialComException - if an I/O error occurs.IllegalArgumentException - if invalid flag is passed.public boolean setDeviceVersion(long handle,
int version)
throws SerialComException
Executes CP210x_SetDeviceVersion function of of CP210xManufacturing library.
Sets the Device Release Version field of the Device Descriptor of a CP210x device.
handle - of the device.version - 2-byte Device Release Version number in Binary-Coded Decimal (BCD) format
with the upper two nibbles containing the two decimal digits of the major version
and the lower two nibbles containing the two decimal digits of the minor version.SerialComException - if an I/O error occurs.IllegalArgumentException - if invalid flag is passed.public boolean setBaudRateConfig(long handle,
int baudGen,
int timer0Reload,
int prescalar,
int baudrate)
throws SerialComException
Executes CP210x_SetBaudRateConfig function of of CP210xManufacturing library.
Sets the baud rate configuration data of a CP210x device.
handle - of the device.baudGen - BaudGen field of BAUD_CONFIG structure defined in CP210XManufacturingDLL.h header file.timer0Reload - Timer0Reload field of BAUD_CONFIG structure defined in CP210XManufacturingDLL.h header file.prescalar - Pre-scaler field of BAUD_CONFIG structure defined in CP210XManufacturingDLL.h header file.baudrate - BaudRate field of BAUD_CONFIG structure defined in CP210XManufacturingDLL.h header file.SerialComException - if an I/O error occurs.public boolean setPortConfig(long handle,
int mode,
int resetLatch,
int suspendLatch,
int enhancedFxn)
throws SerialComException
Executes CP210x_SetPortConfig function of of CP210xManufacturing library.
Sets the current port pin configuration from the CP210x device.
handle - of the device.mode - Mode field of PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.resetLatch - Reset_Latch field of PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.suspendLatch - Suspend_Latch field of PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.enhancedFxn - EnhancedFxn field of PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.SerialComException - if an I/O error occurs.public boolean setDualPortConfig(long handle,
int mode,
int resetLatch,
int suspendLatch,
int enhancedFxnECI,
int enhancedFxnSCI,
int enhancedFxnDevice)
throws SerialComException
Executes CP210x_SetDualPortConfig function of of CP210xManufacturing library.
Sets the port configuration of a CP2105 device.
handle - of the device.mode - Mode field of DUAL_PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.resetLatch - Reset_Latch field of DUAL_PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.suspendLatch - Suspend_Latch field of DUAL_PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.enhancedFxnECI - EnhancedFxn_ECI field of DUAL_PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.enhancedFxnSCI - EnhancedFxn_SCI field of DUAL_PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.enhancedFxnDevice - EnhancedFxn_Device field of DUAL_PORT_CONFIG structure defined in CP210XManufacturingDLL.h header file.SerialComException - if an I/O error occurs.public boolean setQuadPortConfig(long handle,
int[] resetLatch,
int[] suspendLatch,
byte[] config)
throws SerialComException
Executes CP210x_SetDualPortConfig function of of CP210xManufacturing library.
Sets the port configuration of a CP2108 device.
The sequence of resetLatch array starting at index 0 is : Mode_PB0, Mode_PB1, Mode_PB2, Mode_PB3, Mode_PB4, LowPower_PB0, LowPower_PB1, LowPower_PB2, LowPower_PB3, LowPower_PB4, Latch_PB0, Latch_PB1, Latch_PB2, Latch_PB3, Latch_PB4.
The sequence of suspendLatch array starting at index 0 is : Mode_PB0, Mode_PB1, Mode_PB2, Mode_PB3, Mode_PB4, LowPower_PB0, LowPower_PB1, LowPower_PB2, LowPower_PB3, LowPower_PB4, Latch_PB0, Latch_PB1, Latch_PB2, Latch_PB3, Latch_PB4.
The sequence for config starting at index 0 is : IPDelay_IFC0, IPDelay_IFC1, IPDelay_IFC2, IPDelay_IFC3, EnhancedFxn_IFC0, EnhancedFxn_IFC1, EnhancedFxn_IFC2, EnhancedFxn_IFC3, EnhancedFxn_Device, ExtClk0Freq, ExtClk1Freq, ExtClk2Freq, ExtClk3Freq respectively.
handle - of the device.resetLatch - array of integers containing info related to QUAD_PORT_STATE structure defined in
CP210XManufacturingDLL.h header file.suspendLatch - array of integers containing info related to QUAD_PORT_STATE structure defined
in CP210XManufacturingDLL.h header file.config - array of bytes containing info related to QUAD_PORT_CONFIG structure defined in
CP210XManufacturingDLL.h header file.IllegalArgumentException - if length of resetLatch, suspendLatch or config is incorrect.SerialComException - if an I/O error occurs.public boolean setLockValue(long handle)
throws SerialComException
Executes CP210x_SetLockValue function of of CP210xManufacturing library.
Sets the 1-byte lock value of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public int getDeviceVid(long handle)
throws SerialComException
Executes CP210x_GetDeviceVid function of CP210xManufacturing library.
Returns the 2-byte Vendor ID field of the device descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public int getDevicePid(long handle)
throws SerialComException
Executes CP210x_GetDevicePid function of CP210xManufacturing library.
Returns the 2-byte Product ID field of the device descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public String getDeviceManufacturerString(long handle) throws SerialComException
Executes CP210x_GetDeviceManufacturerString function of CP210xManufacturing library.
Returns the manufacturer string of the String Descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public String getDeviceProductString(long handle) throws SerialComException
Executes CP210x_GetDeviceProductString function of CP210xManufacturing library.
Returns the product description string of the String Descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public String getDeviceInterfaceString(long handle, byte bInterfaceNumber) throws SerialComException
Executes CP210x_GetDeviceInterfaceString function of CP210xManufacturing library.
Gets the interface string of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public String getDeviceSerialNumber(long handle) throws SerialComException
Executes CP210x_GetDeviceSerialNumber function of CP210xManufacturing library.
Gets the serial number string of the String Descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public boolean getSelfPower(long handle)
throws SerialComException
Executes CP210x_GetSelfPower function of CP210xManufacturing library.
Returns the state of the Self-Powered bit of the Power Attributes field of the Configuration Descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public byte getMaxPower(long handle)
throws SerialComException
Executes CP210x_GetMaxPower function of CP210xManufacturing library.
Returns the 1-byte Max Power field of the Configuration Descriptor of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public short getFlushBufferConfig(long handle)
throws SerialComException
Executes CP210x_GetFlushBufferConfig function of CP210xManufacturing library.
Returns the flush buffer configuration of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public byte[] getDeviceMode(long handle)
throws SerialComException
Executes CP210x_GetDeviceMode function of CP210xManufacturing library.
Gets the operating modes of interfaces of a CP2105 device.
handle - of the device.SerialComException - if an I/O error occurs.public int getDeviceVersion(long handle)
throws SerialComException
Executes CP210x_GetDeviceVersion function of CP210xManufacturing library.
Returns the device version of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public CP210XbaudConfigs[] getBaudRateConfig(long handle) throws SerialComException
Executes CP210x_GetBaudRateConfig function of CP210xManufacturing library.
Gets the baud rate configuration data of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public int[] getPortConfig(long handle)
throws SerialComException
Executes CP210x_GetPortConfig function of CP210xManufacturing library.
Gets the current port pin configuration from the CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public int[] getDualPortConfig(long handle)
throws SerialComException
Executes CP210xGetDualPortConfig function of CP210xManufacturing library.
Gets the current port pin configuration from the CP210x (typically CP2105) device.
handle - of the device.SerialComException - if an I/O error occurs.public int[] getQuadPortConfig(long handle)
throws SerialComException
Executes CP210x_GetQuadPortConfig function of CP210xManufacturing library.
Gets the current port pin configuration from the CP210x (typically CP2108) device.
The sequence of member values in returned array is : Reset_Latch.Mode_PB0, Reset_Latch.Mode_PB1, Reset_Latch.Mode_PB2, Reset_Latch.Mode_PB3, Reset_Latch.Mode_PB4, Reset_Latch.LowPower_PB0, Reset_Latch.LowPower_PB1, Reset_Latch.LowPower_PB2, Reset_Latch.LowPower_PB3, Reset_Latch.LowPower_PB4, Reset_Latch.Latch_PB0, Reset_Latch.Latch_PB1, Reset_Latch.Latch_PB2, Reset_Latch.Latch_PB3, Reset_Latch.Latch_PB4, Suspend_Latch.Mode_PB0, Suspend_Latch.Mode_PB1, Suspend_Latch.Mode_PB2, Suspend_Latch.Mode_PB3, Suspend_Latch.Mode_PB4, Suspend_Latch.LowPower_PB0, Suspend_Latch.LowPower_PB1, Suspend_Latch.LowPower_PB2, Suspend_Latch.LowPower_PB3, Suspend_Latch.LowPower_PB4, Suspend_Latch.Latch_PB0, Suspend_Latch.Latch_PB1, Suspend_Latch.Latch_PB2, Suspend_Latch.Latch_PB3, Suspend_Latch.Latch_PB4, IPDelay_IFC0, IPDelay_IFC1, IPDelay_IFC2, IPDelay_IFC3, EnhancedFxn_IFC0, EnhancedFxn_IFC1, EnhancedFxn_IFC2, EnhancedFxn_IFC3, EnhancedFxn_Device, ExtClk0Freq, ExtClk1Freq, ExtClk2Freq, ExtClk3Freq respectively.
handle - of the device.SerialComException - if an I/O error occurs.public byte getLockValue(long handle)
throws SerialComException
Executes CP210x_GetLockValue function of CP210xManufacturing library.
Returns the 1-byte Lock Value of a CP210x device.
handle - of the device.SerialComException - if an I/O error occurs.public boolean reset(long handle)
throws SerialComException
Executes CP210x_Reset function of CP210xManufacturing library.
Initiates a reset of the USB interface.
handle - of the device.SerialComException - if an I/O error occurs.public boolean createHexFile(long handle,
String fileName)
throws SerialComException
Executes CP210x_CreateHexFile function of CP210xManufacturing library.
handle - of the device.fileName - name of file.SerialComException - if an I/O error occurs.Copyright © 2016. All rights reserved.