I-8014W API User Manual, v1.0.1, June 2011
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
75
i8014W_ReadFIFO
This function is used to read data from FIFO after Magic Scan triggered. If the data in
FIFO is less than argument readCount, the function will read back all the data and
return immediately, you need to call this function again and reset argument hexData []
and readCount, till all the data required is obtained and then stop the Magic Scan.
Prototype
For MiniOS7
short i804W_ReadFIFO
(
int slot, short hexData[], short readCount,
short* dataCountFromFIFO
);
For Windows (CE and WES)
short pac_i8014W_ReadFIFO
(
int slot, short hexData[], short readCount,
short* dataCountFromFIFO
);
Parameter
Slot: 0 ~ 7
hexData []: the start address of data array to store data read back with
hexadecimal format
readCount: the count of data required
* dataCountFromFIFO:
[Output]
the count of data read back in this process.
Return
0 = No Error
For other returned value, see
Error code list, page 55.