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()
SpiSlave
public int getRxStatus(int[] pRxSize)
SpiSlave
getRxStatus
in interface SpiSlave
public int read(byte[] buffer, int bufferSize, int[] sizeOfRead)
SpiSlave
public int write(byte[] buffer, int bufferSize, int[] sizeTransferred)
SpiSlave
write
in interface SpiSlave
buffer
- 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()
SpiSlave
public 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