public class FT_4222_Device
extends java.lang.Object
Constructor and Description |
---|
FT_4222_Device(FT_Device ftDev)
Constructor for FT4222 device class
|
Modifier and Type | Method and Description |
---|---|
int |
chipReset()
Chip reset
|
boolean |
cleanRxData()
Clear inner read buffer
|
int |
getClock(byte[] clk)
Get the current system clock rate.
|
Gpio |
getGpioDevice()
Get GPIO interface
|
I2cMaster |
getI2cMasterDevice()
Get I2c mater interface
|
I2cSlave |
getI2cSlaveDevice()
Get I2c slave interface
|
SpiMaster |
getSpiMasterDevice()
Get Spi mater interface
|
SpiSlave |
getSpiSlaveDevice()
Get Spi slave interface
|
char |
GetVersion() |
int |
init()
Init FT_4222_Device class and sync the chip status internally
|
boolean |
isFT4222Device()
Check if the device is FT4222 device
|
int |
setClock(byte clk)
Set the system clock rate.
|
int |
setInterruptEnable(boolean bValue)
Set interrupt and remote wake up enable
|
int |
setInterruptTrigger(int triggerType)
Set interrupt trigger type
|
int |
setSuspendOut(boolean bValue)
Set suspend out enable
|
public FT_4222_Device(FT_Device ftDev)
ftDev
- a generic FT device interfacepublic int init()
public int setClock(byte clk)
clk
- FT4222 system clock ratepublic int getClock(byte[] clk)
clk
- FT4222 system clock ratepublic boolean cleanRxData()
public boolean isFT4222Device()
public I2cMaster getI2cMasterDevice()
public I2cSlave getI2cSlaveDevice()
public SpiMaster getSpiMasterDevice()
public SpiSlave getSpiSlaveDevice()
public Gpio getGpioDevice()
public int setSuspendOut(boolean bValue)
bValue
- true for enable and false for disablepublic int setInterruptEnable(boolean bValue)
bValue
- true for enable and false for disablepublic int setInterruptTrigger(int triggerType)
triggerType
- GPIO_Tigger.GPIO_TRIGGER_RISING, GPIO_Tigger.GPIO_TRIGGER_FALLING, GPIO_Tigger.GPIO_TRIGGER_LEVEL_HIGH or GPIO_Tigger.GPIO_TRIGGER_LEVEL_LOWpublic int chipReset()
public char GetVersion()