| Constructor and Description |
|---|
FT_4222_Spi_Slave(FT_4222_Device pDevice) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRxStatus(int[] pRxSize)
Get number of bytes in the receive queue.
|
int |
init()
Initialize FT4222H as SPI slave.
|
int |
read(byte[] buffer,
int bufferSize,
int[] sizeOfRead)
Get number of bytes in the receive queue.
|
int |
reset()
Reset the SPI master or slave device.
|
int |
setDrivingStrength(int clkStrength,
int ioStrength,
int ssoStregth)
For the FT4222H SPI Slave, set the driving strength of clk, io, and sso pins.
|
int |
write(byte[] buffer,
int bufferSize,
int[] sizeTransferred)
Write data to the transmit queue of the SPI slave device.
|
public FT_4222_Spi_Slave(FT_4222_Device pDevice)
public int init()
SpiSlavepublic int getRxStatus(int[] pRxSize)
SpiSlavegetRxStatus in interface SpiSlavepublic int read(byte[] buffer,
int bufferSize,
int[] sizeOfRead)
SpiSlavepublic int write(byte[] buffer,
int bufferSize,
int[] sizeTransferred)
SpiSlavewrite in interface SpiSlavebuffer - buffer that contains the data to be written to the device.bufferSize - number of bytes to read from the device.sizeTransferred - number of bytes written to the device.public int reset()
SpiSlavepublic int setDrivingStrength(int clkStrength,
int ioStrength,
int ssoStregth)
clkStrength - The driving strength of the clk pinioStrength - The driving strength of the io pinssoStregth - The driving strength of the sso pin