PT_FAITransfer

typedef struct tagPT_FAITransfer
{
    INT16U ActiveBuf,
    VOID * DataBuffer;
    INT16U DataType;
    INT16U start;
    INT32U count;
    INT16U *overrun;
} PT_FAITransfer, * LPT_FAITransfer;

PT_FAITransfer is used in function DRV_FAITransfer.

Member Description

Name Direction Range Description
ActiveBuf input 0, 1 Reserved, always set to 0 at present.
DataBuffer output Depends on the hardware. User's buffer.

The data transferred from the sampling buffer is stored in the user allocated buffer (DataBuffer). The buffer size should not be below 2*count  (if DataType is Unsigned short) or below4*count (if DataType is Float). count is the sampling data count.

Please refer to the FastAnalogInput to set a buffer with proper size.

DataType input 0, 1 The data type:
0-Raw data (Unsigned short)
1-Float data (float point data).
start input 0 or N/2 (N is the sampling data count that allocates the sampling buffer when initiating FAI. For example, the count in PT_FAIDmaExStart indicates N.) The starting point of the source buffer to be copied to the data buffer.
count input N/2 (N is the sampling data count that allocates the sampling buffer when initiating FAI. For example, the count in PT_FAIDmaExStart indicates N.)  It must be half of the sampling data count.
overrun output 0, 1 The overrun status. If the data in 1st/2nd half of the buffer has not been taken away in time, an overrun flag will be set and the data will be overwritten by new ones.
0- No overrun occurs
1- Overrun occurs