![ICP DAS USA I-8014W Скачать руководство пользователя страница 85](http://html1.mh-extra.com/html/icp-das-usa/i-8014w/i-8014w_user-manual_3653750085.webp)
I-8014W API User Manual, v1.0.1, June 2011
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
85
Example
[C++]
void main()
{
int slot,TrgLevel;
slot = 0;
TrgLevel=100;
i8014W_Install_MagicScanISR(slot,ISRFUN, TrgLevel);
i8014W_ConfigMagicScan(
…);
// Detail reviews i8014W_ConfigMagicScan section
i8014W_StartMagicScan(slot);
…
while(1)
{
if(IntCnt>1)
{
i8014W_UnInstall_MagicScanISR(slot);
break;
}
}
…
}
void ISRFUN(int slot);
{
Int IntCnt=0;
+;
ret=i8014W_ReadFIFO(slot, totalScaned,
TargetCnt-totalScaned,&readCnt);
if(readCnt >0)
{
tota=readCnt;
printCom1("TotalScaned= %d\n\r",totalScaned);
to=readCnt;
}
i8014W_ClearInt(slot);
}