public interface FTD2XX
extends com.sun.jna.Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
FTD2XX.FT_DEVICE_LIST_INFO_NODE |
static class |
FTD2XX.FT_PROGRAM_DATA |
static class |
FTD2XX.Loader |
static class |
FTD2XX.NotificationEvents |
| Modifier and Type | Field and Description |
|---|---|
static int |
FT_FLAGS_OPENED |
static int |
FT_LIST_ALL |
static int |
FT_LIST_BY_INDEX |
static int |
FT_LIST_NUMBER_ONLY |
static int |
FT_OPEN_BY_DESCRIPTION |
static int |
FT_OPEN_BY_LOCATION |
static int |
FT_OPEN_BY_SERIAL_NUMBER |
static FTD2XX |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
FT_Close(com.sun.jna.Pointer ftHandle)
Close an open device.
|
int |
FT_ClrDtr(com.sun.jna.Pointer ftHandle)
This function clears the Data Terminal Ready (DTR) control signal.
|
int |
FT_ClrRts(com.sun.jna.Pointer ftHandle)
This function clears the Request To Send (RTS) control signal.
|
int |
FT_CreateDeviceInfoList(com.sun.jna.ptr.IntByReference lpdwNumDevs)
This function builds a device information list and returns the number of D2XX devices connected to the system.
|
int |
FT_CyclePort(com.sun.jna.Pointer ftHandle)
Send a cycle command to the USB port.
|
int |
FT_EE_Program(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData)
Program the EEPROM.
|
int |
FT_EE_ProgramEx(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData,
String Manufacturer,
String ManufacturerId,
String Description,
String SerialNumber)
Program the EEPROM and pass strings separately.
|
int |
FT_EE_Read(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData)
Read the contents of the EEPROM.
|
int |
FT_EE_ReadEx(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData,
String Manufacturer,
String ManufacturerId,
String Description,
String SerialNumber)
Read the contents of the EEPROM and pass strings separately.
|
int |
FT_EE_UARead(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer pucData,
int dwDataLen,
com.sun.jna.ptr.IntByReference lpdwBytesRead)
Read the contents of the EEPROM user area.
|
int |
FT_EE_UASize(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwSize)
Get the available size of the EEPROM user area.
|
int |
FT_EE_UAWrite(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer pucData,
int dwDataLen)
Write data into the EEPROM user area.
|
int |
FT_EEPROM_Program(com.sun.jna.Pointer ftHandle,
com.sun.jna.Structure eepromData,
int eepromDataSize,
com.sun.jna.Pointer Manufacturer,
com.sun.jna.Pointer ManufacturerId,
com.sun.jna.Pointer Description,
com.sun.jna.Pointer SerialNumber)
Write the contents of the EEPROM and pass strings separately.
|
int |
FT_EEPROM_Read(com.sun.jna.Pointer ftHandle,
com.sun.jna.Structure eepromData,
int eepromDataSize,
com.sun.jna.Pointer Manufacturer,
com.sun.jna.Pointer ManufacturerId,
com.sun.jna.Pointer Description,
com.sun.jna.Pointer SerialNumber)
Read the contents of the EEPROM and pass strings separately.
|
int |
FT_EraseEE(com.sun.jna.Pointer ftHandle)
Erases the device EEPROM.
|
int |
FT_GetBitMode(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.ByteByReference pucMode)
Gets the instantaneous value of the data bus.
|
int |
FT_GetComPortNumber(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lplComPortNumber)
Retrieves the COM port associated with a device.
|
int |
FT_GetDeviceInfo(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference pftType,
com.sun.jna.ptr.IntByReference lpdwID,
com.sun.jna.Pointer pcSerialNumber,
com.sun.jna.Pointer pcDescription,
com.sun.jna.Pointer pvDummy)
Get device information for an open device.
|
int |
FT_GetDeviceInfoDetail(int dwIndex,
com.sun.jna.ptr.IntByReference lpdwFlags,
com.sun.jna.ptr.IntByReference lpdwType,
com.sun.jna.ptr.IntByReference lpdwID,
com.sun.jna.ptr.IntByReference lpdwLocId,
com.sun.jna.Pointer pcSerialNumber,
com.sun.jna.Pointer pcDescription,
com.sun.jna.ptr.PointerByReference ftHandle)
This function returns an entry from the device information list.
|
int |
FT_GetDeviceInfoList(FTD2XX.FT_DEVICE_LIST_INFO_NODE[] pDest,
com.sun.jna.ptr.IntByReference lpdwNumDevs)
This function returns an entry from the device information list.
|
int |
FT_GetDriverVersion(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwDriverVersion)
This function returns the D2XX driver version number.
|
int |
FT_GetLatencyTimer(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.ByteByReference pucTimer)
Get the current value of the latency timer.
|
int |
FT_GetLibraryVersion(com.sun.jna.ptr.IntByReference lpdwDLLVersion)
This function returns D2XX DLL version number.
|
int |
FT_GetModemStatus(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwModemStatus)
Gets the modem status and line status from the device.
|
int |
FT_GetQueueStatus(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwAmountInRxQueue)
Gets the number of bytes in the receive queue.
|
int |
FT_GetStatus(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwAmountInRxQueue,
com.sun.jna.ptr.IntByReference lpdwAmountInTxQueue,
com.sun.jna.ptr.IntByReference lpdwEventStatus)
Gets the device status including number of characters in the receive queue, number of characters in the transmit
queue, and the current event status.
|
int |
FT_GetVIDPID(com.sun.jna.ptr.IntByReference pdwVID,
com.sun.jna.ptr.IntByReference pdwPID)
A command to retrieve the current VID and PID combination from within the internal device list table.
|
int |
FT_ListDevices(com.sun.jna.Pointer pvArg1,
com.sun.jna.Pointer pvArg2,
int dwFlags)
Gets information concerning the devices currently connected.
|
int |
FT_Open(int iDevice,
com.sun.jna.ptr.PointerByReference ftHandle)
Open the device and return a handle which will be used for subsequent accesses.
|
int |
FT_OpenEx(com.sun.jna.Pointer pvArg1,
int dwFlags,
com.sun.jna.ptr.PointerByReference ftHandle)
Open the specified device and return a handle that will be used for subsequent accesses.
|
int |
FT_Purge(com.sun.jna.Pointer ftHandle,
int dwMask)
This function purges receive and transmit buffers in the device.
|
int |
FT_Read(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer lpBuffer,
int dwBytesToRead,
com.sun.jna.ptr.IntByReference lpdwBytesReturned)
Read data from the device.
|
int |
FT_ReadEE(com.sun.jna.Pointer ftHandle,
int dwWordOffset,
com.sun.jna.ptr.ShortByReference lpwValue)
Read a value from an EEPROM location.
|
int |
FT_Reload(short wVID,
short wPID)
This function forces a reload of the driver for devices with a specific VID and PID combination.
|
int |
FT_Rescan()
This function can be of use when trying to recover devices programatically.
|
int |
FT_ResetDevice(com.sun.jna.Pointer ftHandle)
This function sends a reset command to the device.
|
int |
FT_ResetPort(com.sun.jna.Pointer ftHandle)
Send a reset command to the port.
|
int |
FT_RestartInTask(com.sun.jna.Pointer ftHandle)
Restart the driver's IN task.
|
int |
FT_SetBaudRate(com.sun.jna.Pointer ftHandle,
int dwBaudRate)
This function sets the baud rate for the device.
|
int |
FT_SetBitMode(com.sun.jna.Pointer ftHandle,
byte ucMask,
byte ucMode)
Enables different chip modes.
|
int |
FT_SetBreakOff(com.sun.jna.Pointer ftHandle)
Resets the BREAK condition for the device.
|
int |
FT_SetBreakOn(com.sun.jna.Pointer ftHandle)
Sets the BREAK condition for the device.
|
int |
FT_SetChars(com.sun.jna.Pointer ftHandle,
byte uEventCh,
byte uEventChEn,
byte uErrorCh,
byte uErrorChEn)
This function sets the special characters for the device.
|
int |
FT_SetDataCharacteristics(com.sun.jna.Pointer ftHandle,
byte uWordLength,
byte uStopBits,
byte uParity)
This function sets the data characteristics for the device.
|
int |
FT_SetDeadmanTimeout(com.sun.jna.Pointer ftHandle,
int dwDeadmanTimeout)
This function allows the maximum time in milliseconds that a USB request can remain outstanding to be set.
|
int |
FT_SetDivisor(com.sun.jna.Pointer ftHandle,
short usDivisor)
This function sets the baud rate for the device.
|
int |
FT_SetDtr(com.sun.jna.Pointer ftHandle)
This function sets the Data Terminal Ready (DTR) control signal.
|
int |
FT_SetEventNotification(com.sun.jna.Pointer ftHandle,
int dwEventMask,
com.sun.jna.Pointer pvArg)
Sets conditions for event notification.
|
int |
FT_SetFlowControl(com.sun.jna.Pointer ftHandle,
short usFlowControl,
byte uXon,
byte uXoff)
This function sets the flow control for the device.
|
int |
FT_SetLatencyTimer(com.sun.jna.Pointer ftHandle,
byte ucTimer)
Set the latency timer value.
|
int |
FT_SetResetPipeRetryCount(com.sun.jna.Pointer ftHandle,
int dwCount)
Set the ResetPipeRetryCount value.
|
int |
FT_SetRts(com.sun.jna.Pointer ftHandle)
This function sets the Request To Send (RTS) control signal.
|
int |
FT_SetTimeouts(com.sun.jna.Pointer ftHandle,
int dwReadTimeout,
int dwWriteTimeout)
This function sets the read and write timeouts for the device.
|
int |
FT_SetUSBParameters(com.sun.jna.Pointer ftHandle,
int dwInTransferSize,
int dwOutTransferSize)
Set the USB request transfer size.
|
int |
FT_SetVIDPID(int dwVID,
int dwPID)
A command to include a custom VID and PID combination within the internal device list table.
|
int |
FT_StopInTask(com.sun.jna.Pointer ftHandle)
Stops the driver's IN task.
|
int |
FT_Write(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer lpBuffer,
int dwBytesToWrite,
com.sun.jna.ptr.IntByReference lpdwBytesWritten)
Write data to the device.
|
int |
FT_WriteEE(com.sun.jna.Pointer ftHandle,
int dwWordOffset,
short wValue)
Write a value to an EEPROM location.
|
static final FTD2XX INSTANCE
static final int FT_FLAGS_OPENED
static final int FT_LIST_NUMBER_ONLY
static final int FT_LIST_BY_INDEX
static final int FT_LIST_ALL
static final int FT_OPEN_BY_SERIAL_NUMBER
static final int FT_OPEN_BY_DESCRIPTION
static final int FT_OPEN_BY_LOCATION
int FT_SetVIDPID(int dwVID,
int dwPID)
dwVID - Device Vendor ID (VID)dwPID - Device Product ID (PID)int FT_GetVIDPID(com.sun.jna.ptr.IntByReference pdwVID,
com.sun.jna.ptr.IntByReference pdwPID)
pdwVID - Pointer to DWORD(int) that will contain the internal VIDpdwPID - Pointer to DWORD(int) that will contain the internal PIDint FT_CreateDeviceInfoList(com.sun.jna.ptr.IntByReference lpdwNumDevs)
lpdwNumDevs - Pointer to unsigned long(long) to store the number of devices connected.int FT_GetDeviceInfoList(FTD2XX.FT_DEVICE_LIST_INFO_NODE[] pDest, com.sun.jna.ptr.IntByReference lpdwNumDevs)
pDest - Pointer to an array of FT_DEVICE_LIST_INFO_NODE structures.lpdwNumDevs - Pointer to the number of elements in the arrayint FT_GetDeviceInfoDetail(int dwIndex,
com.sun.jna.ptr.IntByReference lpdwFlags,
com.sun.jna.ptr.IntByReference lpdwType,
com.sun.jna.ptr.IntByReference lpdwID,
com.sun.jna.ptr.IntByReference lpdwLocId,
com.sun.jna.Pointer pcSerialNumber,
com.sun.jna.Pointer pcDescription,
com.sun.jna.ptr.PointerByReference ftHandle)
dwIndex - Index of the entry in the device info list.lpdwFlags - Pointer to unsigned long to store the flag value.lpdwType - Pointer to unsigned long to store device type.lpdwID - Pointer to unsigned long to store device ID.lpdwLocId - Pointer to unsigned long to store the device location ID.pcSerialNumber - Pointer to buffer to store device serial number as a nullterminated string.pcDescription - Pointer to buffer to store device description as a null-terminated string.ftHandle - Pointer to a variable of type FT_HANDLE where the handle will be stored.int FT_ListDevices(com.sun.jna.Pointer pvArg1,
com.sun.jna.Pointer pvArg2,
int dwFlags)
pvArg1 - Meaning depends on dwFlagspvArg2 - Meaning depends on dwFlagsdwFlags - Determines format of returned information.int FT_Open(int iDevice,
com.sun.jna.ptr.PointerByReference ftHandle)
iDevice - Index of the device to open. Indices are 0 based.ftHandle - Pointer to a variable of type FT_HANDLE where the handle will be stored. This handle must be used to
access the device.int FT_OpenEx(com.sun.jna.Pointer pvArg1,
int dwFlags,
com.sun.jna.ptr.PointerByReference ftHandle)
pvArg1 - Pointer to an argument whose type depends on the value of dwFlags. It is normally be interpreted as a
pointer to a null terminated string.dwFlags - FT_OPEN_BY_SERIAL_NUMBER, FT_OPEN_BY_DESCRIPTION or FT_OPEN_BY_LOCATION.ftHandle - Pointer to a variable of type FT_HANDLE where the handle will be stored. This handle must be used to
access the device.int FT_Close(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_Read(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer lpBuffer,
int dwBytesToRead,
com.sun.jna.ptr.IntByReference lpdwBytesReturned)
ftHandle - Handle of the device.lpBuffer - Pointer to the buffer that receives the data from the device.dwBytesToRead - Number of bytes to be read from the device.lpdwBytesReturned - Pointer to a variable of type DWORD which receives the number of bytes read from the device.int FT_Write(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer lpBuffer,
int dwBytesToWrite,
com.sun.jna.ptr.IntByReference lpdwBytesWritten)
ftHandle - Handle of the device.lpBuffer - Pointer to the buffer that contains the data to be written to the device.dwBytesToWrite - Number of bytes to write to the device.lpdwBytesWritten - Pointer to a variable of type DWORD which receives the number of bytes written to the device.int FT_SetBaudRate(com.sun.jna.Pointer ftHandle,
int dwBaudRate)
ftHandle - Handle of the device.dwBaudRate - Baud rate.int FT_SetDivisor(com.sun.jna.Pointer ftHandle,
short usDivisor)
ftHandle - Handle of the device.usDivisor - Divisor.int FT_SetDataCharacteristics(com.sun.jna.Pointer ftHandle,
byte uWordLength,
byte uStopBits,
byte uParity)
ftHandle - Handle of the device.uWordLength - Number of bits per word - must be FT_BITS_8 or FT_BITS_7.uStopBits - Number of stop bits - must be FT_STOP_BITS_1 or FT_STOP_BITS_2.uParity - Parity - must be FT_PARITY_NONE, FT_PARITY_ODD, FT_PARITY_EVEN, FT_PARITY_MARK or FT_PARITY SPACE.int FT_SetTimeouts(com.sun.jna.Pointer ftHandle,
int dwReadTimeout,
int dwWriteTimeout)
ftHandle - Handle of the device.dwReadTimeout - Read timeout in milliseconds.dwWriteTimeout - Write timeout in milliseconds.int FT_SetFlowControl(com.sun.jna.Pointer ftHandle,
short usFlowControl,
byte uXon,
byte uXoff)
ftHandle - Handle of the device.usFlowControl - Must be one of FT_FLOW_NONE, FT_FLOW_RTS_CTS, FT_FLOW_DTR_DSR or FT_FLOW_XON_XOFF.uXon - Character used to signal Xon. Only used if flow control is FT_FLOW_XON_XOFF.uXoff - Character used to signal Xoff. Only used if flow control is FT_FLOW_XON_XOFF.int FT_SetDtr(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_ClrDtr(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_SetRts(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_ClrRts(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_GetModemStatus(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwModemStatus)
ftHandle - Handle of the device.lpdwModemStatus - Pointer to a variable of type DWORD which receives the modem status and line status from the device.int FT_GetQueueStatus(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwAmountInRxQueue)
ftHandle - Handle of the device.lpdwAmountInRxQueue - Pointer to a variable of type DWORD which receives the number of bytes in the receive queue.int FT_GetDeviceInfo(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference pftType,
com.sun.jna.ptr.IntByReference lpdwID,
com.sun.jna.Pointer pcSerialNumber,
com.sun.jna.Pointer pcDescription,
com.sun.jna.Pointer pvDummy)
ftHandle - Handle of the device.pftType - Pointer to unsigned long to store device type.lpdwID - Pointer to unsigned long to store device ID.pcSerialNumber - Pointer to buffer to store device serial number as a null-terminated string.pcDescription - Pointer to buffer to store device description as a null-terminated string.pvDummy - Reserved for future use - should be set to NULL.int FT_GetDriverVersion(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwDriverVersion)
ftHandle - Handle of the device.lpdwDriverVersion - Pointer to the driver version number.int FT_GetLibraryVersion(com.sun.jna.ptr.IntByReference lpdwDLLVersion)
lpdwDLLVersion - Pointer to the DLL version number.int FT_GetComPortNumber(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lplComPortNumber)
ftHandle - Handle of the device.lplComPortNumber - Pointer to a variable of type LONG which receives the COM port number associated with the device.int FT_GetStatus(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwAmountInRxQueue,
com.sun.jna.ptr.IntByReference lpdwAmountInTxQueue,
com.sun.jna.ptr.IntByReference lpdwEventStatus)
ftHandle - Handle of the device.lpdwAmountInRxQueue - Pointer to a variable of type DWORD which receives the number of characters in the receive queue.lpdwAmountInTxQueue - Pointer to a variable of type DWORD which receives the number of characters in the transmit queue.lpdwEventStatus - Pointer to a variable of type DWORD which receives the current state of the event status.int FT_SetEventNotification(com.sun.jna.Pointer ftHandle,
int dwEventMask,
com.sun.jna.Pointer pvArg)
ftHandle - Handle of the device.dwEventMask - Conditions that cause the event to be set.pvArg - Interpreted as the handle of an event.int FT_SetChars(com.sun.jna.Pointer ftHandle,
byte uEventCh,
byte uEventChEn,
byte uErrorCh,
byte uErrorChEn)
ftHandle - Handle of the device.uEventCh - Event character.uEventChEn - 0 if event character disabled, non-zero otherwise.uErrorCh - Error character.uErrorChEn - 0 if error character disabled, non-zero otherwise.int FT_SetBreakOn(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_SetBreakOff(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_Purge(com.sun.jna.Pointer ftHandle,
int dwMask)
ftHandle - Handle of the device.dwMask - Combination of FT_PURGE_RX and FT_PURGE_TX.int FT_ResetDevice(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_ResetPort(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_CyclePort(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_Rescan()
int FT_Reload(short wVID,
short wPID)
wVID - Vendor ID of the devices to reload the driver for.wPID - Product ID of the devices to reload the driver for.int FT_SetResetPipeRetryCount(com.sun.jna.Pointer ftHandle,
int dwCount)
ftHandle - Handle of the device.dwCount - Unsigned long containing required ResetPipeRetryCount.int FT_StopInTask(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_RestartInTask(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_SetDeadmanTimeout(com.sun.jna.Pointer ftHandle,
int dwDeadmanTimeout)
ftHandle - Handle of the device.dwDeadmanTimeout - Deadman timeout value in milliseconds. Default value is 5000.int FT_ReadEE(com.sun.jna.Pointer ftHandle,
int dwWordOffset,
com.sun.jna.ptr.ShortByReference lpwValue)
ftHandle - Handle of the device.dwWordOffset - EEPROM location to read from.lpwValue - Pointer to the WORD value read from the EEPROM.int FT_WriteEE(com.sun.jna.Pointer ftHandle,
int dwWordOffset,
short wValue)
ftHandle - Handle of the device.dwWordOffset - EEPROM location to read from.wValue - The WORD value write to the EEPROM.int FT_EraseEE(com.sun.jna.Pointer ftHandle)
ftHandle - Handle of the device.int FT_EE_Read(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData)
ftHandle - Handle of the device.pData - Pointer to structure of type FT_PROGRAM_DATA.int FT_EE_ReadEx(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData,
String Manufacturer,
String ManufacturerId,
String Description,
String SerialNumber)
ftHandle - Handle of the device.pData - Pointer to structure of type FT_PROGRAM_DATA.Manufacturer - Pointer to a null-terminated string containing the manufacturer name.ManufacturerId - Pointer to a null-terminated string containing the manufacturer ID.Description - Pointer to a null-terminated string containing the device description.SerialNumber - Pointer to a null-terminated string containing the device serial number.int FT_EEPROM_Read(com.sun.jna.Pointer ftHandle,
com.sun.jna.Structure eepromData,
int eepromDataSize,
com.sun.jna.Pointer Manufacturer,
com.sun.jna.Pointer ManufacturerId,
com.sun.jna.Pointer Description,
com.sun.jna.Pointer SerialNumber)
ftHandle - Handle of the device.eepromData - Pointer to a buffer that contains the data to be read.eepromDataSize - Size of the eepromData buffer that contains storage for the data to be read.Manufacturer - Pointer to a null-terminated string containing the manufacturer name.ManufacturerId - Pointer to a null-terminated string containing the manufacturer ID.Description - Pointer to a null-terminated string containing the device description.SerialNumber - Pointer to a null-terminated string containing the device serial number.int FT_EEPROM_Program(com.sun.jna.Pointer ftHandle,
com.sun.jna.Structure eepromData,
int eepromDataSize,
com.sun.jna.Pointer Manufacturer,
com.sun.jna.Pointer ManufacturerId,
com.sun.jna.Pointer Description,
com.sun.jna.Pointer SerialNumber)
ftHandle - Handle of the device.eepromData - Pointer to a buffer that contains the data to be read.eepromDataSize - Size of the eepromData buffer that contains storage for the data to be read.Manufacturer - Pointer to a null-terminated string containing the manufacturer name.ManufacturerId - Pointer to a null-terminated string containing the manufacturer ID.Description - Pointer to a null-terminated string containing the device description.SerialNumber - Pointer to a null-terminated string containing the device serial number.int FT_EE_Program(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData)
ftHandle - Handle of the device.pData - Pointer to structure of type FT_PROGRAM_DATA.int FT_EE_ProgramEx(com.sun.jna.Pointer ftHandle,
FTD2XX.FT_PROGRAM_DATA.ByReference pData,
String Manufacturer,
String ManufacturerId,
String Description,
String SerialNumber)
ftHandle - Handle of the device.pData - Pointer to structure of type FT_PROGRAM_DATA.Manufacturer - Pointer to a null-terminated string containing the manufacturer name.ManufacturerId - Pointer to a null-terminated string containing the manufacturer ID.Description - Pointer to a null-terminated string containing the device description.SerialNumber - Pointer to a null-terminated string containing the device serial number.int FT_EE_UASize(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.IntByReference lpdwSize)
ftHandle - Handle of the device.lpdwSize - Pointer to a DWORD that receives the available size, in bytes, of the EEPROM user area.int FT_EE_UARead(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer pucData,
int dwDataLen,
com.sun.jna.ptr.IntByReference lpdwBytesRead)
ftHandle - Handle of the device.pucData - Pointer to a buffer that contains storage for data to be read.dwDataLen - Size, in bytes, of buffer that contains storage for the data to be read.lpdwBytesRead - Pointer to a DWORD that receives the number of bytes read.int FT_EE_UAWrite(com.sun.jna.Pointer ftHandle,
com.sun.jna.Pointer pucData,
int dwDataLen)
ftHandle - Handle of the device.pucData - Pointer to a buffer that contains the data to be written.dwDataLen - Size, in bytes, of buffer that contains storage for the data to be read.int FT_SetLatencyTimer(com.sun.jna.Pointer ftHandle,
byte ucTimer)
ftHandle - Handle of the device.ucTimer - Required value, in milliseconds, of latency timer. Valid range is 2 – 255.int FT_GetLatencyTimer(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.ByteByReference pucTimer)
ftHandle - Handle of the device.pucTimer - Pointer to unsigned char to store latency timer value.int FT_SetBitMode(com.sun.jna.Pointer ftHandle,
byte ucMask,
byte ucMode)
ftHandle - Handle of the device.ucMask - Required value for bit mode mask. This sets up which bits are inputs and outputs. A bit value of 0
sets the corresponding pin to an input, a bit value of 1 sets the corresponding pin to an output. In
the case of CBUS Bit Bang, the upper nibble of this value controls which pins are inputs and outputs,
while the lower nibble controls which of the outputs are high and low.ucMode - Mode value. Can be one of the following: 0x0 = Reset 0x1 = Asynchronous Bit Bang 0x2 = MPSSE (FT2232,
FT2232H, FT4232H and FT232H devices only) 0x4 = Synchronous Bit Bang (FT232R, FT245R, FT2232, FT2232H,
FT4232H and FT232H devices only) 0x8 = MCU Host Bus Emulation Mode (FT2232, FT2232H, FT4232H and
FT232H devices only) 0x10 = Fast Opto-Isolated Serial Mode (FT2232, FT2232H, FT4232H and FT232H
devices only) 0x20 = CBUS Bit Bang Mode (FT232R and FT232H devices only) 0x40 = Single Channel
Synchronous 245 FIFO Mode (FT2232H and FT232H devices only)int FT_GetBitMode(com.sun.jna.Pointer ftHandle,
com.sun.jna.ptr.ByteByReference pucMode)
ftHandle - Handle of the device.pucMode - Pointer to unsigned char to store the instantaneous data bus value.int FT_SetUSBParameters(com.sun.jna.Pointer ftHandle,
int dwInTransferSize,
int dwOutTransferSize)
ftHandle - Handle of the device.dwInTransferSize - Transfer size for USB IN request.dwOutTransferSize - Transfer size for USB OUT request.Copyright © 2021. All rights reserved.