| Package | Description |
|---|---|
| com.ftdi |
| Modifier and Type | Method and Description |
|---|---|
void |
FTDevice.close()
Close connection with device.
|
void |
FTDevice.cyclePort()
Send a cycle command to the USB port.
|
BitModes |
FTDevice.getBitMode()
Gets the instantaneous value of the data bus.
|
int |
FTDevice.getComPortNumber()
Gets the com port number of the device.
|
static List<FTDevice> |
FTDevice.getDevices()
Get the connected FTDI devices.
|
static List<FTDevice> |
FTDevice.getDevices(boolean isIncludeOpenedDevices)
Get the connected FTDI devices.
|
static List<FTDevice> |
FTDevice.getDevicesByDescription(String description)
Get the connected FTDI devices.
|
static List<FTDevice> |
FTDevice.getDevicesByDeviceType(DeviceType deviceType)
Get the connected FTDI devices.
|
static List<FTDevice> |
FTDevice.getDevicesBySerialNumber(String serialNumber)
Get the connected FTDI devices.
|
EnumSet<DeviceStatus> |
FTDevice.getDeviceStatus()
Gets the modem status and line status from the device.
|
int |
FTDevice.getEEPROMUserAreaSize()
Get the available size of the EEPROM user area
|
short |
FTDevice.getLatencyTimer()
Get the current value of the latency timer.
|
int |
FTDevice.getQueueStatus()
Gets the number of bytes in the receive queue.
|
void |
FTDevice.open()
Open connection with device.
|
void |
FTDevice.purgeBuffer(boolean rxBuffer,
boolean txBuffer)
Purge receive or transmit buffers in the device.
|
int |
FTDevice.read()
Read a byte from device.
|
int |
FTDevice.read(byte[] bytes)
Read bytes from device.
|
int |
FTDevice.read(byte[] bytes,
int offset,
int lenght)
Read bytes from device.
|
byte[] |
FTDevice.read(int number)
Read given bytes from device.
|
EepromX |
FTDevice.readEEPROM_X()
Read X series device EEPROM data Check D2xx Programmer's Guide Appendix A for details
|
EEPROMData |
FTDevice.readEEPROM()
Read device EEPROM data
|
byte[] |
FTDevice.readEEPROMUserArea(int numberOfBytes)
Read the contents of the EEPROM user area
|
byte[] |
FTDevice.readFullEEPROMUserArea()
Read all contents of the EEPROM user area
|
void |
FTDevice.resetDevice()
Send a reset command to the device.
|
void |
FTDevice.setBaudRate(long baudRate)
Set desired baud rate.
|
void |
FTDevice.setBitMode(byte ucMask,
BitModes bitMode)
Enables different chip modes.
|
void |
FTDevice.setDataCharacteristics(WordLength wordLength,
StopBits stopBits,
Parity parity)
This function sets the data characteristics for the device
|
void |
FTDevice.setDtr(boolean status)
Set the Data Terminal Ready (DTR) control signal.
|
void |
FTDevice.SetEventNotification(com.sun.jna.Pointer eventHandler)
Set the event notification handler.
|
void |
FTDevice.setFlowControl(FlowControl flowControl)
Sets the flow control for the device.
|
void |
FTDevice.setFlowControl(FlowControl flowControl,
byte uXon,
byte uXoff)
Sets the flow control for the device.
|
void |
FTDevice.setLatencyTimer(short timer)
Set the latency timer value.
|
void |
FTDevice.setRts(boolean status)
Set the Request To Send (RTS) control signal
|
void |
FTDevice.setTimeouts(long readTimeout,
long writeTimeout)
Set the read and write timeouts for the device.
|
void |
FTDevice.setUSBParameters(int inTransferSize,
int outTransferSize)
Set the USB request transfer size.
|
static void |
FTDevice.setVidPid(int dwVID,
int dwPID)
A command to include a custom VID and PID combination within the internal device list table.
|
int |
FTDevice.write(byte[] bytes)
Write bytes to device.
|
int |
FTDevice.write(byte[] bytes,
int offset,
int length)
Write bytes to device.
|
boolean |
FTDevice.write(int b)
Write byte to device.
|
void |
FTDevice.writeEEPROM_X(EepromX eeprom)
Write X series device EEPROM data Check D2xx Programmer's Guide Appendix A for details
|
void |
FTDevice.writeEEPROM(EEPROMData programData)
Program the EEPROM data
|
void |
FTDevice.writeEEPROMUserArea(byte[] data)
Write data into the EEPROM user area
|
void |
FTDevice.writeEEPROMUserArea(String data)
Write string into the EEPROM user area
|
Copyright © 2021. All rights reserved.