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 |
---|---|
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
|
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.
|
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()