static int[] transferData()
Throws:
static int[] transferData(int nrOfFrames)
Throws:
static int[] transferData(int[] txBuf)
Throws:
static int[] transferData(int[] txBuf, int offs, int nrOfFrames)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
transferData() method:
This method transfers all stored data frames from the TX buffer to a slave device and returns the received data frames as rxBuf array after the transfer has been completed. The returned rxBuf.length value contains the number of frames that are transferred to a slave device.
Returns | Description |
---|---|
rxBuf[] | array that contains the received data frames |
transferData(int nrOfFrames) method:
Parameter | Description |
---|---|
nrOfFrames | number of the data frames that should be transfered |
This method transfers nrOfFrames elements from the TX buffer to a slave device and returns the received data frames as rxBuf array after the transfer has been completed. The returned rxBuf.length value contains the number of frames that are transferred to a slave device.
Returns | Description |
---|---|
rxBuf[] | array that contains the received data frames |
transferData(int[] txBuf) method:
This method clears the TX buffer befor the new txBuf data frames are written to the TX buffer.
Parameter | Description |
---|---|
txBuf | array of frames that should be written to the TX buffer |
The txBuf contains the array of data frames that should be transmitted to a slave device and returns the received data frames as rxBuf array after the transfer has been completed. The returned rxBuf.length value contains the number of frames that are transferred to a slave device.
Returns | Description |
---|---|
rxBuf[] | array that contains the received data frames |
transferData(int[] txBuf, int offs, int len) method:
This method clears the TX buffer befor the new txBuf data frames are written to the TX buffer.
Parameter | Description |
---|---|
txBuf | array of frames that should be written to the TX buffer |
offs | offset to the first data frame |
nrOfFrames | number of the data frames that should be transfered |
The txBuf contains the array of data frames and writes nrOfFrames elements according to the offset parameter offs into the TX buffer. This method returns the received data frames as rxBuf array after the transfer has been completed. The returned rxBuf.length value contains the number of frames that are transferred to a slave device.
Returns | Description |
---|---|
rxBuf[] | array that contains the received data frames |
Notes
Copyright © demmel products gmbh. All rights reserved.