Package comm
Class SPI

Public Method writeTXBuffer

static int writeTXBuffer(int txBuf)

Throws:

static int writeTXBuffer(int[] txBuf)

Throws:

static int writeTXBuffer(int[] txBuf, int offs, int len)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

writeTXBuffer(int txBuf) method:

Parameter Description
txBuf one frame that should be stored in the TX buffer

The txBuf contains the data frame that should be stored in the TX buffer and transferred to a slave device afterwards. This method returns 1 in case of a TX buffer overflow. Otherwise, 0 is returned.

Returns Description
val 1 if a TX buffer overflow occurs


writeTXBuffer(int[] txBuf) method:

Parameter Description
txBuf array of frames that should be stored in the TX buffer

The txBuf contains the data frames that should be stored in the TX buffer and transferred to a slave device afterwards. This method counts and returns the number of data frames in the case of a TX buffer overflow. Otherwise, 0 is returned.

Returns Description
val number of data frames if a TX buffer overflow occurs


writeTXBuffer(int[] txBuf, int offs, int nrOfFrames) method:

Parameter Description
txBuf array of frames that should be stored in the TX buffer
offs offset to the first data frame in txBuf
nrOfFrames number of data frames that should be stored

The txBuf contains the data frames that should be stored in the TX buffer according to the offs and len parameter. This method counts and returns the number of data frames in the case of a TX buffer overflow. Otherwise, 0 is returned.

Returns Description
val number of data frames if a TX buffer overflow occurs


Note